Ask Your Question

Revision history [back]

click to hide/show revision 1
initial version

limit the number digits of constants in derivatives

hello, when i define a function and let Sage calculate the derivatives, the constants in the output functions have many digits. example: sage:x=var('x') sage:f=5xexp(-0.1x^2) sage:diff(f) Sage output:-x^2e^(-0.100000000000000x^2) + 5e^(-0.100000000000000*x^2). Is there a way to limit the number of digits?

click to hide/show revision 2
No.2 Revision

limit the number digits of constants in derivatives

hello, when i define a function and let Sage calculate the derivatives, the constants in the output functions have many digits. example:

sage:x=var('x')
sage:f=5xexp(-0.1x^2)
sage:f=5*x*exp(-0.1*x^2)
sage:diff(f)
Sage output:-x^2e^(-0.100000000000000x^2) output:-x^2*e^(-0.100000000000000*x^2) + 5e^(-0.100000000000000*x^2). 5*e^(-0.100000000000000*x^2).

Is there a way to limit the number of digits?

click to hide/show revision 3
No.3 Revision

How to limit the number digits of constants in derivativesdisplayed real numbers?

hello, when i define a function and let Sage calculate the derivatives, the constants in the output functions have many digits. example:

sage:x=var('x')
sage:f=5*x*exp(-0.1*x^2)
sage:diff(f)
Sage output:-x^2*e^(-0.100000000000000*x^2) + 5*e^(-0.100000000000000*x^2).

Is there a way to limit the number of digits?

click to hide/show revision 4
retagged

How to limit the number digits of constants in displayed real numbers?

hello, when i define a function and let Sage calculate the derivatives, the constants in the output functions have many digits. example:

sage:x=var('x')
sage:f=5*x*exp(-0.1*x^2)
sage:diff(f)
Sage output:-x^2*e^(-0.100000000000000*x^2) + 5*e^(-0.100000000000000*x^2).

Is there a way to limit the number of digits?