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.1.tar.gz (15.8 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.1-py3-none-any.whl (12.2 kB view details)

Uploaded Python 3

File details

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

File metadata

  • Download URL: pychastic-0.2.1.tar.gz
  • Upload date:
  • Size: 15.8 kB
  • Tags: Source
  • Uploaded using Trusted Publishing? No
  • Uploaded via: twine/4.0.2 CPython/3.10.6

File hashes

Hashes for pychastic-0.2.1.tar.gz
Algorithm Hash digest
SHA256 53491ddee459d15551ca3b3d0c17af2267eeb4c031cb4d470db9ad073c316ce3
MD5 87a5667b7ffe570f823923ca3a04b44b
BLAKE2b-256 6e72d2f8a1a836427dbca083392673c37c2745cf9fb0f7e660483ed8efb43b54

See more details on using hashes here.

File details

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

File metadata

  • Download URL: pychastic-0.2.1-py3-none-any.whl
  • Upload date:
  • Size: 12.2 kB
  • Tags: Python 3
  • Uploaded using Trusted Publishing? No
  • Uploaded via: twine/4.0.2 CPython/3.10.6

File hashes

Hashes for pychastic-0.2.1-py3-none-any.whl
Algorithm Hash digest
SHA256 fe96b0805c24c9e78ed53b0a62f70fe4718c04414af9425eb75d71058757f575
MD5 8f457a9c2d7e4667b38d9a9ade4e3143
BLAKE2b-256 f8b35b60b5dd86df0b9ac267c8bd673bb034f2a5457138eeea7b479beeb51ef5

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