cancel
Showing results for 
Search instead for 
Did you mean: 
cancel
Showing results for 
Search instead for 
Did you mean: 

Community Tip - If community subscription notifications are filling up your inbox you can set up a daily digest and get all your notifications in a single email. X

mathcad 15 variable undefined

astevenson-3
1-Newbie

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 3

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

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 😃

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

Top Tags