Re: Getting numerical values from a closed form integration?

Francois Maltey <[email protected]>
Newsgroups gmane.comp.mathematics.axiom.user
Message-ID <[email protected]>
> For example:
> 
> integrate(sin(2*x),x=-%pi/3..4*%pi/7)
> 
> The answer is in closed form, but I can't convert it to a float.  At least:
> 
> integrate(sin(2*x),x=-%pi/3..4*%pi/7)::Float

Try 

numeric integrate(sin(2*x),x=-%pi/3..4*%pi/7)

I get 0.20048...

Don't you find a strong typed CAS is nice for mathematics
even if the final user is a little bored...

Francois
lmpx.com only provides a reader for public news (NNTP) servers. It is not affiliated with the servers or forums shown here and is not responsible for the content of articles, which is written by their respective authors.