login  home  contents  what's new  discussion  bug reports     help  links  subscribe  changes  refresh  edit

Edit detail for NumericalIntegration revision 1 of 1

1
Editor: 127.0.0.1
Time: 2007/11/08 06:22:01 GMT-8
Note:

changed:
-
The package 'NumericalQuadrature' implements several operations for numerical integration. Here I provide just some examples. Documentation is to be found in the corresponding '.spad' or '.pamphlet' file.

\begin{axiom}
   romberg(x+->exp1()^x,0.0,1.0,0.1,0.1,6,10)
\end{axiom}

\begin{axiom}
   simpson(x+->exp1()^x,0.0,1.0,0.1,0.1,6,10)
\end{axiom}

\begin{axiom}
   trapezoidal(x+->exp1()^x,0.0,1.0,0.1,0.1,6,10)
\end{axiom}

  Note that for some reason
\begin{axiom}
   %pi::Float
\end{axiom}
  works, while 
\begin{axiom}
   %e::Float
\end{axiom}
  fails. You have to use
\begin{axiom}
   exp1()$Float
\end{axiom}
  instead.

The package NumericalQuadrature implements several operations for numerical integration. Here I provide just some examples. Documentation is to be found in the corresponding .spad or .pamphlet file.

axiom
romberg(x+->exp1()^x,0.0,1.0,0.1,0.1,6,10)
LatexWiki Image(1)
Type: Record(value: Float,error: Float,totalpts: Integer,success: Boolean)

axiom
simpson(x+->exp1()^x,0.0,1.0,0.1,0.1,6,10)
LatexWiki Image(2)
Type: Record(value: Float,error: Float,totalpts: Integer,success: Boolean)

axiom
trapezoidal(x+->exp1()^x,0.0,1.0,0.1,0.1,6,10)
LatexWiki Image(3)
Type: Record(value: Float,error: Float,totalpts: Integer,success: Boolean)

Note that for some reason

axiom
%pi::Float
LatexWiki Image(4)
Type: Float

works, while

axiom
%e::Float
Cannot convert from type Expression Integer to Float for value %e

fails. You have to use

axiom
exp1()$Float
LatexWiki Image(5)
Type: Float

instead.