Ask Your Question

wizulis's profile - activity

2019-01-07 08:37:08 -0500 received badge  Notable Question (source)
2019-01-07 08:37:08 -0500 received badge  Popular Question (source)
2012-10-05 07:09:08 -0500 received badge  Editor (source)
2012-10-05 04:21:35 -0500 received badge  Student (source)
2012-10-04 23:09:40 -0500 asked a question Automatic reevulation and publishing

I'm working with some physics modelling and I'm using sagemath to visualize results. As results calculate for days and I have some people following my work, an auto updating sage math worksheet which gets republished would be a perfect solution. Is it possible from within sage?

2012-09-17 23:23:42 -0500 received badge  Supporter (source)
2012-09-17 23:23:41 -0500 received badge  Scholar (source)
2012-09-17 23:23:41 -0500 marked best answer how to find root of a spline
sage: find_root(func,0,6)   
5.3157137464283455
sage: plot(func,[x,0,6])
2012-09-17 21:41:52 -0500 asked a question how to find root of a spline

Basicaly the title says it: I have data points for which i need to find the x value where y is a known value. I tried it like this, but it seems that it should be done differently:

from sage.gsl.all import spline
data=[[0,1],[1,2],[2,2.2],[3,2.4],[4,0.4],[5,0.1],[6,-0.5]]
func=spline(data)
x=var('x')
find_root(func(x),0,6)
..[Error message with main idea - TypeError: unable to simplify to float approximation]