Thiele's interpolation formula: Difference between revisions

Content added Content deleted
m (→‎{{header|PowerShell}}: changed tabs to spaces)
m (→‎{{header|PowerShell}}: replaced invoke with InvokeReturnAsIs, this returns the results as expected, not as a System.Collections.ObjectModel.Collection<Double>)
Line 372: Line 372:
#uncomment to see the function
#uncomment to see the function
#"{$asin}"
#"{$asin}"
6*$asin.invoke(.5)[0]
6*$asin.InvokeReturnAsIs(.5)
$acos = (Thiele-Interpolation $acost)
$acos = (Thiele-Interpolation $acost)
#uncomment to see the function
#uncomment to see the function
#"{$acos}"
#"{$acos}"
3*$acos.invoke(.5)[0]
3*$acos.InvokeReturnAsIs(.5)
$atan = (Thiele-Interpolation $atant)
$atan = (Thiele-Interpolation $atant)
#uncomment to see the function
#uncomment to see the function
#"{$atan}"
#"{$atan}"
4*$atan.invoke(1)[0]</lang>
4*$atan.InvokeReturnAsIs(1)</lang>


=={{header|Tcl}}==
=={{header|Tcl}}==