b2 icon indicating copy to clipboard operation
b2 copied to clipboard

system parser constructs generic power nodes rather than int power nodes

Open ofloveandhate opened this issue 8 years ago • 1 comments

parsing a system from string produces incorrect power nodes.

you can reproduce this in Python with the following lines of code:

from pybertini import *
sys = parse_system('function f1, f2; variable_group x,y,z; f1 = x*y; f2 = x^2*y - z*x;')
sys.differentiate()
sys

the resulting operator for the derivative of the x^2 term should just be x, not x^(2-1).

ofloveandhate avatar Apr 26 '17 19:04 ofloveandhate

can we get a test going that this doesn't happen?

ofloveandhate avatar Sep 13 '17 23:09 ofloveandhate