tropic

3 Reputation

2 Badges

14 years, 342 days

MaplePrimes Activity


These are questions asked by tropic

i got many float data from 'for' sentence relating x,e.g.

for i to 4 do
  x := 0.01*i;
  if (i = 1) then
    y := 0.2;
    z := 0.05:
  elif (i = 2) then
    y := 0.3;
    z := 0.5:
  elif (i = 3) then
    y := 0.5;
    z := 1.05:
  elif (i = 4) then
    y := 1.2;
    z := 2.05:
  else

i got a set of roots of nonlinear equation by fslove method.e.g.

y1:=a^4+b-3=0;

y2:=a^3+b^2+2=0;

fsolve({y1, y2})

⇒{a = -1.402752934, b = -.8719054433}

i got roots value of the equation,but i want to continue to use direcly the float values of 'a' and 'b' in my program,but i couldnt ues them by some methods since 'a' and 'b' didnt seem to be assigned.so i had to write the values in a text file,then...

I get a data of string type from .txt file,but i want to use the data from string type to float tpye in my program,In fact ,i had tried in many methods,convert,sscanf,type etc.but, i coundnt solve this problem until now.if u know,please tell me how can i do.

example:

x:="0.01"⇒x=0.01

Page 1 of 1