Open akaph2p opened 1 month ago
Script
from pyariadne import *
def flow():
#! Make a function f and compute the flow of the differential equation dx/dt=f(x)
x=RealVariable("x")
f=make_function([x],[-x+sin(x)])
print("f:",f)
domain=BoxDomainType([ (x_(0,x_(2))) ])
#!< Specify that the bounds as written are exact double-precision numbers
step=Dyadic(x_(1.5))
#!< Specify that the bounds as written are exact double-precision numbers
#! Solve to a tolerace of 10^-9; time-out after 32 steps
tolerance=1e-9
order=12
integrator = TaylorSeriesIntegrator(tolerance, order)
#! Solve for the root of g in the given region using the interval Newton method
phi=integrator.flow_step(f,domain,step)
print("phi=flow(f):",phi)
print()
if __name__=='__main__':
flow()
Hi,
trying to run the differential_equation_tutorial.py example on WSL (Ubuntu 20.04). I run into this error:
Could you provide some guidance? I tried running a different example but a similar issue comes up. Is the python script not importing pyariadne properly?