0

I assign the result of a Solve to the variable eq8. Then I attempt to use this result in the definition of a function as follows:

In[166]:= eq8 = Solve[eq7, {V1}]
Out[166]= {{V1 -> -1.02 (461.185 - 1. im)}}
In[177]:= Vstrom = eq8[[1, 1, 2]]
Out[177]= -1.02 (461.185 - 1. im)
current[im_] := N[Vstrom]

This does not work. With copy of Out[177] and paste it - instead of Vstrom - into N[] I find

current[im_] := N[-1.0200000000000002` (461.184642121376` - 1.` im)]

When eliminating these characters, my function works. Why can't I use the notation N[Vstrom]? After all, these-characters in the above number are just the spec. that the number shall have maschine accuracy. So why does the funktion not work with these characters present?

Robert Brusa
  • 121
  • 4

0 Answers0