Skip to main content
1-Visitor
October 31, 2015
Question

mathcad 15 variable undefined

Can anyone please tell me why mathcad 15 chooses to not recognise variable definition when you are using the equation directly under it's definition ie x=x                                                                                                

2*x

3 replies

1-Visitor
November 2, 2015

You probably need to provide some more information to get a better answer.  However, here are two possible options.

Assign a value to x:

x:=5

2*x=10

Write a function:

f(x):=2*x

f(5)=10

f(7)=14

Translate
23-Emerald I
November 2, 2015

x=x is not a definition.

x := 2   defines the variable x as being equal to the number 2  (shift 🙂

x = x  defines a Boolean constraint (cntrl 😃

Translate
24-Ruby IV
November 4, 2015

Just note that after the variable definition, you can change the display of the sign equal (right-click on the definition and select "View Definition As" --> "Colon Equal"/"Equal").

Pic_1.png

Translate