Skip to main content

Solvers for stochastic differential equations

Project description

Tests

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 = 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).

How to cite

Waszkiewicz, R., Bartczak M., Kolasa K. and Lisicki M. Pychastic: Precise Brownian Dynamics using Taylor-Ito integrators in Python; Sci-Post (submitted) (2022)

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.2.tar.gz (11.7 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.2-py3-none-any.whl (12.3 kB view details)

Uploaded Python 3

File details

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

File metadata

  • Download URL: pychastic-0.2.2.tar.gz
  • Upload date:
  • Size: 11.7 kB
  • Tags: Source
  • Uploaded using Trusted Publishing? No
  • Uploaded via: twine/5.1.1 CPython/3.10.12

File hashes

Hashes for pychastic-0.2.2.tar.gz
Algorithm Hash digest
SHA256 610cf47ed30090c94a0f326bdc3d9c9181233237acaccf7756b4e3ef17c6653e
MD5 316c8f61c061d9e684fb93de3e6826b4
BLAKE2b-256 d2dd73e81e108df1b1d1c9f8799e390f90dafb0c5f64cd79e2e6986317e9ab54

See more details on using hashes here.

File details

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

File metadata

  • Download URL: pychastic-0.2.2-py3-none-any.whl
  • Upload date:
  • Size: 12.3 kB
  • Tags: Python 3
  • Uploaded using Trusted Publishing? No
  • Uploaded via: twine/5.1.1 CPython/3.10.12

File hashes

Hashes for pychastic-0.2.2-py3-none-any.whl
Algorithm Hash digest
SHA256 2493754ac064cff90e5e2b4f1c4d9c8fce71dc20fe8a6959874d506e74f04a12
MD5 7e1301ff872c9fcb25e7e0ba4a919dbb
BLAKE2b-256 b60cac1dee52868b4a28629f103ae94a314309c73aede4d912bb48ea7fe31cd7

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