most videos/tutorials work with specific functions. I find it much harder to work with generic functions. For example having x and y as functions of t and trying to take the ratio of the time derivatives to get simply dy/dx...
Hi, thank you for the suggestion. We will certainly consider it, however if we decide to make a video on the theme it will take some time. Before starting we need to look more into how finished the module is, when looking through the documentation there was a lot of todo's.
You first need to define the constants a, b, and x as sympy symbols with the command a, b, x = sp.symbols("a b x") Then you can form the expression with the command expr = a * x ** 2 + b * sp.exp(-x) * sp.sin(2 * x) You can now differentiate the expression with respect to, say, x with expr.diff(x)
Been watching your playlist today, thank you so much!
This is so well done and gives me exactly everything I need to know. Thanks!
Thanks a lot for the feedback, we really appreciate it :D
most videos/tutorials work with specific functions. I find it much harder to work with generic functions. For example having x and y as functions of t and trying to take the ratio of the time derivatives to get simply dy/dx...
can you do some videos on sympy for quantum computing?
Hi, thank you for the suggestion. We will certainly consider it, however if we decide to make a video on the theme it will take some time. Before starting we need to look more into how finished the module is, when looking through the documentation there was a lot of todo's.
@@TMQuest I understand. Thank you
how can we write an exp like ax**2+bexp(-x)*sin(2x)
You first need to define the constants a, b, and x as sympy symbols with the command
a, b, x = sp.symbols("a b x")
Then you can form the expression with the command
expr = a * x ** 2 + b * sp.exp(-x) * sp.sin(2 * x)
You can now differentiate the expression with respect to, say, x with
expr.diff(x)