|
From: Rahul Uk on 7 May 2008 05:45 angle=input('Enter the required angle : '); p=solve('x^2+y^2=1','y=tan(t*pi/180)*x'); in the above case the required result is not obtained...
From: Nasser Abbasi on 7 May 2008 06:14 "Rahul Uk" <rauluk23mj(a)gmail.com> wrote in message news:fvrtn1$amj$1(a)fred.mathworks.com... > angle=input('Enter the required angle : '); > p=solve('x^2+y^2=1','y=tan(t*pi/180)*x'); > > > in the above case the required result is not obtained... EDU>> clear all syms x y t=input('Enter the required angle : '); Enter the required angle : 45 p = solve(x^2+y^2-1,y-tan(t*pi/180)*x); p.x p.y ans = 1/2*2^(1/2) -1/2*2^(1/2) ans = 1/2*2^(1/2) -1/2*2^(1/2) Nasser
From: Rahul Uk on 7 May 2008 06:50 "Nasser Abbasi" <nma(a)12000.org> wrote in message <LhfUj.900$nl7.202(a)flpi146.ffdc.sbc.com>... > > "Rahul Uk" <rauluk23mj(a)gmail.com> wrote in message > news:fvrtn1$amj$1(a)fred.mathworks.com... > > angle=input('Enter the required angle : '); > > p=solve('x^2+y^2=1','y=tan(t*pi/180)*x'); > > > > > > in the above case the required result is not obtained... > > EDU>> clear all > syms x y > t=input('Enter the required angle : '); > > Enter the required angle : 45 > > p = solve(x^2+y^2-1,y-tan(t*pi/180)*x); > p.x > p.y > > ans = > > 1/2*2^(1/2) > -1/2*2^(1/2) > > ans = > > 1/2*2^(1/2) > -1/2*2^(1/2) > > Nasser > > > This should work in a for loop also right?????
From: Nasser Abbasi on 7 May 2008 07:14 "Rahul Uk" <rauluk23mj(a)gmail.com> wrote in message news:fvs1ha$ona$1(a)fred.mathworks.com... > This should work in a for loop also right????? did you try it? Nasser
From: Rahul Uk on 7 May 2008 09:05 "Nasser Abbasi" <nma(a)12000.org> wrote in message <SagUj.1937$ah4.195(a)flpi148.ffdc.sbc.com>... > > "Rahul Uk" <rauluk23mj(a)gmail.com> wrote in message > news:fvs1ha$ona$1(a)fred.mathworks.com... > > > This should work in a for loop also right????? > > did you try it? > > Nasser > > well it didnt....
|
Pages: 1 Prev: Distributed Computing Ports Next: How long does it Take? |