Skip to main content

Solvers for stochastic differential equations

Project description

PyChastic

All python stochastic differential equations (SDE) solver.

Built for stochastic simulations of hydrodynamically interacting brownian particles (molecular dynamics), but can do much more (such as option pricing in stochastic volitality models).

Uses jax, jax.jit and jax.grad for performace and ease of use.

Usage

import pychastic
problem = problem = pychastic.sde_problem.SDEProblem(lambda x: 0.2*x,lambda x: 0.5*x,1.0,2.0)
solver = pychastic.sde_solver.SDESolver()
trajectory = solver.solve(problem)

import matplotlib.pyplot as plt
plt.plot(trajectory['time_values'],trajectory['solution_values'])
plt.show()

License

This software is licensed under MIT license

Copyright (c) Radost Waszkiewicz and Maciej Bartczak (2021).

Project details


Download files

Download the file for your platform. If you're not sure which to choose, learn more about installing packages.

Source Distribution

pychastic-0.2.0.tar.gz (11.1 kB view details)

Uploaded Source

Built Distribution

If you're not sure about the file name format, learn more about wheel file names.

pychastic-0.2.0-py3-none-any.whl (15.1 kB view details)

Uploaded Python 3

File details

Details for the file pychastic-0.2.0.tar.gz.

File metadata

  • Download URL: pychastic-0.2.0.tar.gz
  • Upload date:
  • Size: 11.1 kB
  • Tags: Source
  • Uploaded using Trusted Publishing? No
  • Uploaded via: twine/3.4.1 importlib_metadata/4.0.1 pkginfo/1.7.0 requests/2.25.1 requests-toolbelt/0.9.1 tqdm/4.60.0 CPython/3.6.9

File hashes

Hashes for pychastic-0.2.0.tar.gz
Algorithm Hash digest
SHA256 7fbc3a67a8d7c8d99c12fb9898bafdb2ec64df3d33b31f5f25959759093923fe
MD5 2500ca11e3962f22a84691d325d38a6d
BLAKE2b-256 30ba68bdb3f21124ffca792f8d1e8ea01cc881d00060dac4584db037087986f3

See more details on using hashes here.

File details

Details for the file pychastic-0.2.0-py3-none-any.whl.

File metadata

  • Download URL: pychastic-0.2.0-py3-none-any.whl
  • Upload date:
  • Size: 15.1 kB
  • Tags: Python 3
  • Uploaded using Trusted Publishing? No
  • Uploaded via: twine/3.4.1 importlib_metadata/4.0.1 pkginfo/1.7.0 requests/2.25.1 requests-toolbelt/0.9.1 tqdm/4.60.0 CPython/3.6.9

File hashes

Hashes for pychastic-0.2.0-py3-none-any.whl
Algorithm Hash digest
SHA256 a9ddecd2e7df502bbfa583b35007c845599dc8155ea05cf881ba2b88fae79f53
MD5 36af0d66e9bc940caf84574bccc01a6f
BLAKE2b-256 0af981127ed7bf958ba1a691a28de041fe244d16cc03d04d8157d3199efaac18

See more details on using hashes here.

Supported by

AWS Cloud computing and Security Sponsor Datadog Monitoring Depot Continuous Integration Fastly CDN Google Download Analytics Pingdom Monitoring Sentry Error logging StatusPage Status page