Incorrect simplification

06062020, 03:20 PM
Post: #1




Incorrect simplification
If I define f(x):=x*(a/pi)^(1/4)*e^(a*x^2),
then execute f(x)*f''(x) and then simplify(ans), the result given is incorrect (plus sign where there should be a minus sign  this is easily seen by substituting e.g. x=1,a=1). No variables have been defined  this occurs even after a fresh restart. What could be causing this? Thanks. 

06072020, 06:24 AM
Post: #2




RE: Incorrect simplification
The simplification command must choose a root in the process, without information on variables the choice is made at random. You can avoid the random choice made on a variable a by running e.g. assume(a>0).
Thanks for pointing to this example, I just found that the numerical value of pi was not taken in account here, I'm fixing that in the source code. 

« Next Oldest  Next Newest »

User(s) browsing this thread: 1 Guest(s)