You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
using TaylorSeries
x_fl=1.0
max_order=20
x=taylor_expand(identity,x_fl,order=max_order)
y=exp(x)
der=derivative(y)
@assertget_order(der)==max_order-1#Correct the derivative is consuming one order.
y_reconstructed=integrate(der,exp(x_fl))
@assertget_order(y_reconstructed)==max_order #assertion error, the integral is not adding one order
To be noticed that if integrate was actually reconstructing the order, one could implement easily but not efficiently any function for Taylor1.
The text was updated successfully, but these errors were encountered:
I see your point and somewhat agree with it (at least, I haven't been able to construct an example where increasing the order yields a wrong answer). It is not complicated to implement this for Taylor1, but trickier for TaylorN where there is a maximum order.
Noticed by @dpsanders What about the integration? Should we increase the order? and still open.
To be noticed that if integrate was actually reconstructing the order, one could implement easily but not efficiently any function for Taylor1.
The text was updated successfully, but these errors were encountered: