How to eliminate the effect of previously defined variables

How to eliminate the effect of previously defined variables - Messages

#1 Posted: 8/31/2025 7:15:34 AM
netsonicyxf

netsonicyxf

0 likes in 9 posts.

Group: User

The two equations in the left part of the image are belong to a long document, the β and ζ are previously defined. I want to get derivate of Rd(β), but it always give me the wrong results,
I have to paste them into a new document (in the right part of the image), where the β and ζ are not previously defined, then I can get the correct answer.

If I want to get the correct result in the original document, how to eliminate the effect of previously defined variables (β and ζ)?
123.jpg
#2 Posted: 8/31/2025 9:58:33 AM
Oscar Campo

Oscar Campo

134 likes in 309 posts.

Group: Moderator

use Clear() function and evaluate:

image.png

When this function is evaluated, the value of arguments in the function are cleaned.

Regards,
Oscar
Edited 8/31/2025 10:01:48 AM
#3 Posted: 8/31/2025 12:23:32 PM
netsonicyxf

netsonicyxf

0 likes in 9 posts.

Group: User

Thanks, but
123.jpg
#4 Posted: 9/1/2025 10:44:55 AM
Oscar Campo

Oscar Campo

134 likes in 309 posts.

Group: Moderator

Wrote

Thanks, but
123.jpg



Pay attention to this convention:
When you type ":" in SMath, you are assigning a value to a variable and SMath renders as: ":=" .
When you type "=", you are asking for the value of a variable, or evaluating a function, and SMath renders it as: "="

In your case, Clear() is a function, so, when you type "Clear(z[Ctrl+g],b[CTRL+g]):1" which renders:

image.png

Here you must to type "1" and you are assigning the value "1" to "Clear(zeta,beta)" . This is wrong.
The correct syntaxis to evaluate the function Clear() is : "Clear(z[Ctrl+g],b[Ctrl+g])=" which renders:

image.png

Here you don't type "1". The value "1" is an automatic response to evaluation of the function Clear(). It is the boolean answer of successfully having evaluated the Clear() function over the variables zeta end beta

Best,

Oscar
1 users liked this post
netsonicyxf 9/1/2025 12:00:58 PM
  • New Posts
  • No New Posts