Questions tagged [sympy]
SymPy is an open source Python library for symbolic mathematics.
10
questions
-3
votes
0answers
9 views
Why according to python -a(b+c) != a(-b-c)? [migrated]
I was coding on python (Anaconda) and while working with sympy I noticed this issue:
...
6
votes
1answer
51 views
Sympy reduction of a multivariate, bounded, under-determined system
This is bad. I've been hacking away at Sympy for a few hours and the only solution I've come up with to yield the data I want is brute-force:
Code
...
1
vote
1answer
32 views
Executing Scipy Tensor Product [closed]
Can anyone advise on how to use the SymPy TensorProduct function without having to explicitly indicate the full sequence of objects to take the product of. Below (for the simple case N=3) you can see ...
2
votes
0answers
62 views
quaternion renormalization
Edit 1: changed a few portions of the code to hopefully make it runnable code and more understandable. If something is still incorrect please let me know.
Edit 2: just remembered I am doing this in ...
27
votes
2answers
3k views
Inverse transform sampling
Inverse transform sampling is a method to generate random values that follow an arbitrary distribution. For some reason this method was never implemented in any popular scientific libraries. And as I ...
7
votes
2answers
2k views
Implementing convolution using SymPy
I started using SymPy recently, and I implemented convolution using it.
...
2
votes
1answer
3k views
Function Plotter GUI in Tkinter and Matplotlib
I have been working on plotting time varying functions in Python as my most recent project, and would love input on optimization, proper Tkinter form, and anything that stands out like a sore thumb.
...
8
votes
1answer
1k views
Fitting multiple piecewise functions to data and return functions and derivatives as Fortran code
Background
For a future workshop I'll have to fit arbitrary functions (independent variable is height z) to data from multiple sources (output of different ...
5
votes
1answer
171 views
Reliability polynomial calculation
The reliability polynomial (specifically, the all-terminal reliability polynomial) is, given a value \$0 \le p \le 1\$, outputs the probability that a given graph \$G\$ is connected.
Note: at the ...
6
votes
2answers
838 views
Math, Geometry, & Physics Library
I am making a Python program that does math and physics calculations for you. This is my first programming project and is a work in progress. The SymPy library was used for some portion of it.
...