bertiniteam / b2

Bertini 2.0: The redevelopment of Bertini in C++.
92 stars 34 forks source link

system parser constructs generic power nodes rather than int power nodes #74

Open ofloveandhate opened 7 years ago

ofloveandhate commented 7 years ago

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 commented 7 years ago

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