You don't write what u is in the first place so I cannot give a specific
answer. However, holding division is possible using the mul method, by
doing a mul with the inverse:
sage: x/(2*x)
1/2
sage: x.mul(1/(2*x), hold=True)
x*(1/2/x)
sage: _.unhold()
1/2
Regards,
--
You received this message b
Unlike Mathematica, Sage hold on evaluation seems to only be as a parameter
to Sage functions and not a standalone function. Is it possible to apply a
hold on a division ?
For example:
u_x = u[0].full_simplify();
u_y = u[1].full_simplify();
u_z = u[2].full_simplify();
u = vector([u_x, u_y, u_z]
Yes, I am sure that you have hit on the problem. Let me know what you come
up with.
On Wednesday, July 19, 2017 at 1:23:00 PM UTC+2, Thomas Judson wrote:
>
> The following code works in CoCalc
>
> cases <- c(36, 531, 4233, 8682, 7164, 2229, 600, 164, 57, 722, 1517, 1828,
> 1539, 2416, 3148, 346