Skip to main content
added 203 characters in body
Source Link

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 `character, my function workcharacters, my function works. Why can't I use the notation N[Vstrom]? After all, these -characters in the above number are just the spec. This is cumbersomethat the number shall have maschine accuracy. How can I get rid ofSo why does the `funktion not work with these characters present?

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 into N[] I find

N[-1.0200000000000002` (461.184642121376` - 1.` im)]

When eliminating these `character, my function work. This is cumbersome. How can I get rid of the ` characters?

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?

Post Closed as "Duplicate" by MarcoB, Mr.Wizard
Source Link

The ` in Solve results

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 into N[] I find

N[-1.0200000000000002` (461.184642121376` - 1.` im)]

When eliminating these `character, my function work. This is cumbersome. How can I get rid of the ` characters?