Ecosyste.ms: Awesome
An open API service indexing awesome lists of open source software.
https://github.com/jagot/mysympy.jl
https://github.com/jagot/mysympy.jl
Last synced: 6 days ago
JSON representation
- Host: GitHub
- URL: https://github.com/jagot/mysympy.jl
- Owner: jagot
- License: other
- Created: 2016-12-31T13:58:26.000Z (about 8 years ago)
- Default Branch: master
- Last Pushed: 2016-12-31T13:58:42.000Z (about 8 years ago)
- Last Synced: 2024-11-15T18:34:58.270Z (2 months ago)
- Language: Julia
- Size: 2.93 KB
- Stars: 0
- Watchers: 2
- Forks: 1
- Open Issues: 0
-
Metadata Files:
- Readme: README.org
- License: LICENSE.md
Awesome Lists containing this project
README
#+TITLE: MySymPy
#+AUTHOR: Stefanos Carlström
#+EMAIL: [email protected][[https://travis-ci.org/jagot/MySymPy.jl][https://travis-ci.org/jagot/MySymPy.jl.svg?branch=master]]
[[https://coveralls.io/github/jagot/MySymPy.jl?branch=master][https://coveralls.io/repos/jagot/MySymPy.jl/badge.svg?branch=master&service=github]]
[[http://codecov.io/github/jagot/MySymPy.jl?branch=master][http://codecov.io/github/jagot/MySymPy.jl/coverage.svg?branch=master]]A few personal routines to aid in symbolic computations.
Example to re-express product of two Gaussians as one:
#+BEGIN_SRC julia :session t :results output :exports both
using SymPy
using MySymPy@syms x N a b c d
ex = N^2*exp(-a*x^2 + c)*exp(-b*x^2 + d)
println()
walk_expression(powsimp(ex)) do eee
trans_gaussian(eee, x)
end
#+END_SRC#+RESULTS:
#+begin_example(x,N,a,b,c,d)
2 2
2 - a⋅x + c - b⋅x + d
N ⋅ℯ ⋅ℯ2
2 c + d - x ⋅(a + b)
N ⋅ℯ
#+end_example