random() < 0.5 random() < 0.5 randFromArray([ "sin", "cos", "tan" ]) "\\" + FN + "^{-1}" "\\arc" + FN function(e,r){return(("undefined"==typeof r?ARC:r)?FN_ARC:FN_INV)+"\\left("+e+"\\right)"} [ 0, 1/2, sqrt(2)/2, sqrt(3)/2 ] [ 0, sqrt(3)/3, 1, sqrt(3) ] (random()<.5?-1:1)*{sin:randFromArray(SIN_RANGE),cos:randFromArray(SIN_RANGE),tan:randFromArray(TAN_RANGE)}[FN] {sin:asin,cos:acos,tan:atan}[FN](X) round( Y * 180 / PI ) KhanUtil.toFraction( Y / Math.PI, 0.001 ) function(e){var r=0>e?"-":"";e=abs(e);var a={};return a[.5]="\\frac{1}{2}",a[sqrt(2)/2]="\\frac{\\sqrt{2}}{2}",a[sqrt(3)/2]="\\frac{\\sqrt{3}}{2}",a[sqrt(3)/3]="\\frac{\\sqrt{3}}{3}",a[sqrt(3)]="\\sqrt{3}",r+(a[e]||e)} {sin:[DEG?"-90°":"-\\frac{\\pi}{2}",DEG?"90°":"\\frac{\\pi}{2}"],cos:["0",DEG?"180°":"\\pi"],tan:[DEG?"-90°":"-\\frac{\\pi}{2}",DEG?"90°":"\\frac{\\pi}{2}"]}[FN]

En gradosradianes, ¿cuál es el valor principal de FN_TEX( PRETTY( X ) )?

Y_DEGREES\Large{{}^\circ}

Y

FN_TEX( PRETTY( X ) ) = FN_TEX( PRETTY( X ), false )

Si FN_TEX( PRETTY( X ), false ) = \theta, entonces...

"\\" + FN\left( \theta \right) = PRETTY( X )

El rango de FN_TEX( "x" ) es [ DOMAIN[0], DOMAIN[1] ], así que sabemos DOMAIN[0] \leq \theta \leq DOMAIN[1].

"\\" + FN \left( ( DEG ? Y_DEGREES + "°" : fractionReduce( Y_RADIANS[0], Y_RADIANS[1], true ) + "\\pi" ) \right) = PRETTY( X )

Así FN_TEX( PRETTY( X ) ) = DEG ? Y_DEGREES + "°" : fractionReduce( Y_RADIANS[0], Y_RADIANS[1], true ) + "\\pi".