Integrate is not increasing the order of the underlying Taylor1 #334
Open
Description
Noticed by @dpsanders What about the integration? Should we increase the order? and still open.
using TaylorSeries
x_fl=1.0
max_order=20
x=taylor_expand(identity,x_fl,order=max_order)
y=exp(x)
der=derivative(y)
@assert get_order(der)==max_order-1 #Correct the derivative is consuming one order.
y_reconstructed=integrate(der,exp(x_fl))
@assert get_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.
Metadata
Assignees
Labels
No labels