help-octave
[Top][All Lists]
Advanced

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

Re: Parse error - Syntax Error


From: Ben Abbott
Subject: Re: Parse error - Syntax Error
Date: Sun, 23 Aug 2015 13:08:34 -0400

> On Aug 22, 2015, at 19:44, 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!

Did you forget to multiply 2 times x?

 "(-2*x)"

Ben


reply via email to

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