help-octave
[Top][All Lists]
Advanced

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

Re: expressing a matlab statement


From: Doug Stewart
Subject: Re: expressing a matlab statement
Date: Thu, 06 Mar 2008 07:09:43 -0500
User-agent: Thunderbird 2.0.0.12 (Windows/20080213)

Dr Preyesh T. Goven Shiba wrote:
Hi
I'm a beginner with the use of matlab and octave... Can someone please help me....How do i express the function y as a amtlab statement for the following expression y^2 - 2y = x + 1 Thankx
Preyesh
Email: address@hidden <mailto:address@hidden>
------------------------------------------------------------------------

_______________________________________________
Help-octave mailing list
address@hidden
https://www.cae.wisc.edu/mailman/listinfo/help-octave
I assume that x is the independent variable.
This is a quadratic in y , therefore there are two solutions  for y
y^2 -2y -x-1=0
y= (-b +- sqrt(b^2 -4ac)) /2a      the generic solution.


y1=(2+sqrt(4-4*(-x-1)))/2
or y1=1+sqrt(2+x)
and y2=1-sqrt(2+x)

hope this helps.





reply via email to

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