In this post, we will see how to resolve How to convert a decimal number into symbolic representation? Question: With sympy, I am aware you can you do something like this: There is a complex number I would like to ...

Question: I am trying to plot a complex numbers function, but I have some problems (I don’t usually use matplotlib, so may be a very stupid error). First of all, I’ve created a function to parse the real and complex ...

Question: So I have a massing csv dump that I need to parse to JSON. Among those csv fields, there are comment fields, similar to this one: which I guess is meant as a price and a number of days, ...

Question: I am trying to plot a complex function with matplotlib. This function plot a normal 1D function if the imaginary part is 0 (and this works) and the whole complex function, as a 2D plot, if the imaginary part ...

Question: I am following Varodom Toochinda (a.k.a Dew)’s tutorial here. But I want to vectorize this piece of code: to but I get the feval: Wrong number of output argument(s): 1 expected. error. and if I try just the feval(P, ...

Question: I have got some problems with my main.cpp.There are some places where I do not know what I have to write to make my code work well. I will write in my code where the problems are. I write ...

Question: I want to solve this equation by using Fortran: Where ψ (psi) is a complex Fortran variable. Now, I am solving this by defining two new complex variables: ir=(1.0,0.0) and ii=(0.0,1.0). I use these to select only the real ...

Question: I have a problem when simplifying a symbolic expression in sympy when having a trigonometric function and a complex exponent, namely I just assumed a different definition of tan function, and I have a weird thing going on. So ...