help-octave
[Top][All Lists]
Advanced

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

Re: GNU Octave Equation Help


From: Juan Pablo Carbajal
Subject: Re: GNU Octave Equation Help
Date: Sun, 23 Aug 2015 18:58:19 +0200

On Sun, Aug 23, 2015 at 7:16 AM, Mike <address@hidden> wrote:
> Hi, I am using GNU Octave to solve a numerical integration but I keep getting
> Parse and Syntax Error for the equation that I write. For simplicity, I
> wrote a simpler equation to help demonstrate my problem. The equation
> written is part of the formula used for the surface area of an object via
> volume of revolution. The error message is inserted as a picture and I've
> also written the equation below:
> y=(sqrt(25-x.^2))*(sqrt(1+((1/2)*(-2x)*(1/(sqrt(25-x.^2)))).^2))
> An error keeps coming up on the "x" part of the "(-2x)" in the middle of the
> equation.   If you can find the mistake or let me know an alternative
> method, please let me know ASAP! Thanks!
>
> Error Message:
> <http://octave.1599824.n4.nabble.com/file/n4672237/Capture.png>
>
>
>
> --
> View this message in context: 
> http://octave.1599824.n4.nabble.com/GNU-Octave-Equation-Help-tp4672237.html
> Sent from the Octave - General mailing list archive at Nabble.com.
>
> _______________________________________________
> Help-octave mailing list
> address@hidden
> https://lists.gnu.org/mailman/listinfo/help-octave

The answer is in the picture! The ^ is pointing exactly at the problem
Octave doesn't know what -2x is, I am sure you meant -2*x



reply via email to

[Prev in Thread] Current Thread [Next in Thread]