How to eliminate the effect of previously defined variables

How to eliminate the effect of previously defined variables - Mensajes

#1 Publicado: 31/8/2025 7:15:34
netsonicyxf

netsonicyxf

1 me gusta en 14 mensajes.

Grupo: 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 Publicado: 31/8/2025 9:58:33
Oscar Campo

Oscar Campo

135 me gusta en 309 mensajes.

Grupo: Moderator

use Clear() function and evaluate:

image.png

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

Regards,
Oscar
Editado 31/8/2025 10:01:48
#3 Publicado: 31/8/2025 12:23:32
netsonicyxf

netsonicyxf

1 me gusta en 14 mensajes.

Grupo: User

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

Oscar Campo

135 me gusta en 309 mensajes.

Grupo: 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
A 1 usuarios les gustó este mensaje
netsonicyxf 1/9/2025 12:00:58
  • Nuevos mensajes
  • Sin mensajes nuevos