Processing math: 100%
Ask Your Question

Revision history [back]

click to hide/show revision 1
initial version

arcsin(5/24*cos(45)) is a Sage object representing the quantity you want to manipulate. What you are seeking is a numerical approximation of this quantity. Which can be obtained by :

sage: numerical_approx(arcsin(5/24*cos(45)))
0.109661742042478

or

sage: arcsin(5/24*cos(45)).n()
0.109661742042478

Try numerical_approx?...

click to hide/show revision 2
No.2 Revision

I want to have the expression as a real number

arcsin(5/24*cos(45)) is a Sage object representing the quantity you want to manipulate. manipulate; its value is a real number+. What you are seeking is a numerical approximation of this quantity. quantity expressed as a decimal representation. Which can be obtained by :

sage: numerical_approx(arcsin(5/24*cos(45)))
0.109661742042478

or

sage: arcsin(5/24*cos(45)).n()
0.109661742042478

Try numerical_approx?...

  • Note that there are an infinity of complex values whose sin is 5/24*cos(45) ; the mathematical function arcsin is multivalued. The Sage function arcsin implement aparticular choice of this branch cut, returning a value in the interval [-\frac\pi2\ \frac\pi2}.
click to hide/show revision 3
No.3 Revision

I want to have the expression as a real number

arcsin(5/24*cos(45)) is a Sage object representing the quantity you want to manipulate; its value is a real number+. What you are seeking is a numerical approximation of this quantity expressed as a decimal representation. Which can be obtained by :

sage: numerical_approx(arcsin(5/24*cos(45)))
0.109661742042478

or

sage: arcsin(5/24*cos(45)).n()
0.109661742042478

Try numerical_approx?...

  • Note that there are an infinity of complex values whose sin is 5/24*cos(45) ; the mathematical function arcsin is multivalued. The Sage function arcsin implement aparticular choice of this branch cut, returning a value in the interval $[-\frac\pi2\ \frac\pi2}$.\frac\pi2]$.
click to hide/show revision 4
No.4 Revision

I want to have the expression as a real number

arcsin(5/24*cos(45)) is a Sage object representing the quantity you want to manipulate; its value is a real number+. What you are seeking is a numerical approximation of this quantity expressed as a decimal representation. Which can be obtained by :

sage: numerical_approx(arcsin(5/24*cos(45)))
0.109661742042478

or

sage: arcsin(5/24*cos(45)).n()
0.109661742042478

Try numerical_approx?...

  • Note that there are an infinity of complex values whose sin is 5/24*cos(45) ; the mathematical function arcsin is multivalued. The Sage function arcsin implement aparticular choice of this branch cut, returning a value in the interval [π2 π2].