How to eliminate the effect of previously defined variables

How to eliminate the effect of previously defined variables - Сообщения

#1 Опубликовано: 31.08.2025 07:15:34
netsonicyxf

netsonicyxf

0 сообщений из 9 понравились пользователям.

Группа: 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 Опубликовано: 31.08.2025 09:58:33
Oscar Campo

Oscar Campo

134 сообщений из 309 понравились пользователям.

Группа: Moderator

use Clear() function and evaluate:

image.png

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

Regards,
Oscar
Отредактировано 31.08.2025 10:01:48
#3 Опубликовано: 31.08.2025 12:23:32
netsonicyxf

netsonicyxf

0 сообщений из 9 понравились пользователям.

Группа: User

Thanks, but
123.jpg
#4 Опубликовано: 01.09.2025 10:44:55
Oscar Campo

Oscar Campo

134 сообщений из 309 понравились пользователям.

Группа: 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 пользователям понравился этот пост
netsonicyxf 01.09.2025 12:00:58
  • Новые сообщения
  • Нет новых сообщений