I am looking for a way to represent a symbolic expression such as sqrt(3)*x
so as to avoid sqrt(3)
being calculated upfront.
Sample code:
using Symbolics
@variables x
y = sqrt(3)*x
Showing y, we can see that sqrt(3) has become a floating point.
Is there a mechanism to keep the sqrt in symbolic form?
(1/3)x
or(1//3)x
? Because(1//3)x
works as expected... – Roodepoortmaraisburg