tarik_mohamadi

5 Reputation

One Badge

0 years, 128 days

MaplePrimes Activity


These are questions asked by tarik_mohamadi

I'm trying to solve this to set of equations :

EQ1:=-1958143.922*k*wr+2468.8339*k^3*wr-0.9481118254e16*k^2-114000.8376*k^4:

EQ2 :=-1186578.220*R*k^2*wr-312683.0293*k^5-288960.9621*k^3*R:

using a loop for different value of R in the range this range (wr=0..10,k=0..10)

eqns:={EQ1,EQ2}:
for i from 1 by 1 to 101 do R:=(i-1):S:=fsolve(eqns,{k, wr},{wr=0..10,k=0..10}):v(i):=(subs(S,(wr)));w(i):=(subs(S,(k)))end do:

but i get this instead :

Error, invalid input: subs received fsolve({-312683.0293*k^5, -1958143.922*k*wr+2468.8339*k^3*wr-0.9481118254e16*k^2-114000.8376*k^4}, {k, wr}, {k = 0 .. 10, wr = 0 .. 10}), which is not valid for its 1st argument

is there another way to solves this equations more easly .

I'm trying to solve this set of two equations forn where (EQ1 and EQ2 are already défined in fontions of the followings variables (k, wr ,R,Pi), and i'm using the following loop 

 

eqns:={EQ1,EQ2}:

for i from 1 by 1 to 101 do R:=(i-1):S:=fsolve((eqns), {k, wr},{k=0..10,wr=0..10} ):v(i):=(subs(S,(wr))):w(i):=(subs(S,(k)))end do:
Error, invalid input: subs received fsolve({-0.6391108652e160*k+0.2384499927e160*wr+0.714075224e160*k^3-0.4729440685e160*wr^3-0.4025871558e160*k^5+0.1700629083e159*wr^5-0.4813673552e156*k^9+0.1033594302e160*k^7-0.1044324938e156*wr^7-0.1017755535e159*k^3*wr^4+0.2163976160e160*k^5*wr^2-0.7986601863e160*k^4*wr-0.2729449277e160*k^6*wr+0.8693579523e154*k^3*wr^6+0.4453377949e156*k^4*wr^5-0.2636332727e157*k^5*wr^4-0.5817233940e157*k^7*wr^2+0.5719400327e157*k^6*wr^3-0.2875232976e161*k^2*wr+0.2294793648e161*k*wr^2+0.1483050053e158*k^2*wr^5-0.3944893217e159*k^4*wr^3-0.464413477e159*k^2*wr^3+0.2760407324e157*k^8*wr+0.8238787577e156*k*wr^6-0.1081920595e...
 

i do get a solution for Pi/2 and Pi/3 but beyond this value i get the above error

Page 1 of 1