1 страниц (14 вхождений)
How to enforcing simbolic evaluation? - Сообщения
#1 Опубликовано: 20.02.2021 03:17:40
Even if the variable have been defined.
E.g. how to get x=(a+b)(a-b)even if a=1, b=2
Файл не найден.Файл не найден.
E.g. how to get x=(a+b)(a-b)even if a=1, b=2
Файл не найден.Файл не найден.
#2 Опубликовано: 20.02.2021 09:39:43
#3 Опубликовано: 20.02.2021 10:20:42
Thanks, but I want to know how to get U=(a+b )*(a-b ), even if a=1, b=2 is on the top
#4 Опубликовано: 20.02.2021 12:01:23
#5 Опубликовано: 20.02.2021 13:02:11
I think the only way is to delete the defintions by using Clear(a;b)= .
#6 Опубликовано: 20.02.2021 13:15:24
WroteI think the only way is to delete the definitions by using Clear(a;= .
No need, algo is self clearing.
#7 Опубликовано: 20.02.2021 17:18:06
#8 Опубликовано: 21.02.2021 01:25:56
#9 Опубликовано: 21.02.2021 09:24:07
#10 Опубликовано: 21.02.2021 11:00:13
#11 Опубликовано: 21.02.2021 11:10:37
Thanks Jean.
BTW, MathCAD doesn't need to do clearance.
BTW, MathCAD doesn't need to do clearance.
#12 Опубликовано: 21.02.2021 12:00:32
WroteBTW, MathCAD doesn't need to do clearance.
True for that little example. More advanced stuff needs be cleared as well.
The symbolic arrow was demanded but not implemented.
#13 Опубликовано: 21.02.2021 13:27:04
The only way is to define the variables after the expression, then you can show the expression using Clear. The other way doesn't works because when values are set before the expression, the values are stored in memory, not the variable names.
If you like my plugins please consider to support the program buying a license; for personal contributions to me: paypal.me/dcprojects
#14 Опубликовано: 21.02.2021 13:28:15
WroteThanks Jean.
BTW, MathCAD doesn't need to do clearance.
Hi. It needs. That is the mean for a:=a and b:=b, which clear a and b only for symbolics, but not for numerics. If you want to show the symbilic value stored in x cleaning a and b after you define x, you can use line() in the definitions:
Also notice that you need to eval Clear(a, b ) = 1, if not SMath not recognize that as an instruction.
Best regards.
Alvaro.
1 пользователям понравился этот пост
Davide Carpi 22.02.2021 05:37:00
1 страниц (14 вхождений)
-
Новые сообщения
-
Нет новых сообщений