Ask Your Question

wizulis's profile - activity

2022-03-05 09:27:40 +0200 received badge  Taxonomist
2019-01-07 15:37:08 +0200 received badge  Notable Question (source)
2019-01-07 15:37:08 +0200 received badge  Popular Question (source)
2012-10-05 14:09:08 +0200 received badge  Editor (source)
2012-10-05 11:21:35 +0200 received badge  Student (source)
2012-10-05 06:09:40 +0200 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-18 06:23:42 +0200 received badge  Supporter (source)
2012-09-18 06:23:41 +0200 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-18 06:23:41 +0200 received badge  Scholar (source)
2012-09-18 04:41:52 +0200 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]