Differences

This shows you the differences between two versions of the page.

Link to this comparison view

Next revision
Previous revision
Last revisionBoth sides next revision
documentation:language_reference:objects:interpolatingfunction:start [2018/09/26 11:43] – created Simon Heinzedocumentation:language_reference:objects:interpolatingfunction:start [2018/09/26 12:12] Martin Brass
Line 3: Line 3:
  
 ### ###
-alligned paragraph text+1D interpolation is currently implemented using cubic splines. Further methods will follow. An interpolating function can be evaluated at a given point or on a set of points, which gives a speed boost, if these points are in ascending order. Higher order derivatives of the interpolating function can also be evaluated.
 ### ###
  
Line 9: Line 9:
  
 ### ###
-description text+
 ### ###
  
 ==== Input ==== ==== Input ====
 <code Quanty Example.Quanty> <code Quanty Example.Quanty>
--- some example code+x = {1,2,3} 
 +y = {1,4,9} 
 +f = InterpolatingFunction.Spline(x,y) 
 + 
 +f(2.5) -- evaluates f at 2.5 
 +n = 1 
 +f(2.5,n) --evaluates the n-th derivative of f at 2.5 
 + 
 +f({1.2,2.5,2.7,2.9}) -- evaluates f successively at the given values
 </code> </code>
  
 ==== Result ==== ==== Result ====
 <file Quanty_Output> <file Quanty_Output>
-text produced as output+Try it yourself ;)
 </file> </file>
  
Print/export