Code Monkey home page Code Monkey logo

pure_python's Introduction

pure_python

Pure Python special functions

Bessel–Clifford function.ipynb

| Bessel–Clifford function Cn (argument complex but n restricted to integer instead of complex)

q-analog.ipynb

| q-Pochhammer symbol q_poch

| q-bracket q_bracket

| q-factorial q_factorial

| q-binomial coefficients q_binom

| binomial coefficient binom (using q_binom and without factorial function)

| unilateral basic hypergeometric series q_hyper (accepts all parameters as complex numbers)

| bilateral basic hypergeometric series q_hyper(type=2) (accepts all parameters as complex numbers)

| q-gamma function q_gamma (when q<1, accepts argument as complex number, accepts base q>1)

| first Jackson q-Bessel function q_besselj1 (accepts base q as complex number)

| second Jackson q-Bessel function q_besselj2 (accepts argument and base q as complex numbers)

| third Jackson q-Bessel function q_besselj3 (accepts argument and base q as complex numbers)

| first modified q-Bessel function of the first kind q_besseli1 (accepts argument and base q as complex numbers)

| second modified q-Bessel function of the first kind q_besseli2 (accepts argument and base q as complex numbers)

| third modified q-Bessel function of the first kind q_besseli3 (accepts argument and base q as complex numbers)

| (not implemented) first modified q-Bessel function of the second kind q_besselk1 (not Pure Python, requires sin)

| (not implemented) second modified q-Bessel function of the second kind q_besselk2 (not Pure Python, requires sin)

| Jackson q-difference operator for q-Bessel funtions q_besselj1p q_besselj2p q_besselj3p q_besseli1p q_besseli2p q_besseli3p

| symmetric q-difference operator for q-Bessel funtions q_besselj1p(type=2) q_besselj2p q_besselj3p q_besseli1p q_besseli2p q_besseli3p

| (not implemented) forward difference operator

| (not implemented) backward difference operator

| q-exponential functions e_q and E_q

| q-sine functions q_sin and q_Sin

| q-cosine functions q_cos and q_Cos

subfactorial.ipynb demo only (see treefactorial.py for special functions)

treefactorial.py

| factorial

| binomial coefficient, faster version using treefactorial binom

| subfactorial, fast algorithm subfactorial

pure_python's People

Contributors

ectomancer avatar

Stargazers

 avatar  avatar  avatar  avatar

Watchers

 avatar  avatar

pure_python's Issues

numerical instability in q_poch

The q_poch function q_poch(q,q) does not behave well near q=1. For example:

import numpy as np
import matplotlib.pyplot as plt
import <q-analog.ipynb> as q

xs = np.linspace(.5, .99, 14, False)
plt.plot(xs, [q.q_poch(x,x) for x in xs], marker='x')
plt.show()

(Replace <q-analog.ipynb> with a module which contains the q_poch function definition.)

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. 📊📈🎉

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google ❤️ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.