[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
Re: area and volume calculation
From: |
Geraint Paul Bevan |
Subject: |
Re: area and volume calculation |
Date: |
Tue, 9 Nov 2004 21:06:17 +0000 (GMT) |
On Tue, 9 Nov 2004, Fred J. wrote:
> Hello
>
> is octave able to determine the area between two
> functions, say
> y = 2x^2 + 10
> y = 4x + 16
> with out me doing pin/paper work first. basically take
> in the functions and get out the area between them.
> what about the volume when the graph is turned about
> the x axis.
>
> thanks
If you just need numerical results, you can easily get these using
quad() to integrate the difference between the functions over the limits
of interest. If you are after a symbolic solution, you would be better
advised to use a symbolic algebra tool. Have a look at the wiki for
options:
http://wiki.octave.org/wiki.pl?CategorySymbolic
- --
Geraint Bevan
http://homepage.ntlworld.com/geraint.bevan
-------------------------------------------------------------
Octave is freely available under the terms of the GNU GPL.
Octave's home on the web: http://www.octave.org
How to fund new projects: http://www.octave.org/funding.html
Subscription information: http://www.octave.org/archive.html
-------------------------------------------------------------