Register to reply 
Mathematica  (Very) Simple Question 
Share this thread: 
#1
Aug1309, 11:06 AM

P: 11

Hi!
I'm doing my first steps in Mathematica and I've wanted to do something simple like assigning a variable to the output and then use it. Something like this:



#2
Aug1309, 12:20 PM

P: 37

There are two problems, one is simple, one is more complicated.
First, use "ReplaceAll" instead of "Replace", it uses a deeper algorithm that will properly do what you want it to do. Second, look at the result of "rX1". It is NOT just a number that can be plugged in. It is a list that has one component with a variable, "X1", being transformed to a larger expression. Try using:



#3
Aug1409, 04:19 AM

P: 11




Register to reply 
Related Discussions  
Simple table in Mathematica  Engineering, Comp Sci, & Technology Homework  1  
Simple problem in Mathematica involving lists  Math & Science Software  3  
Simple Mathematica Question (Solve Function)  Math & Science Software  1  
Simple tensor manipulation in Maple or Mathematica  Math & Science Software  11  
Mathematica help needed, please...(very simple?)  Math & Science Software  1 