Trigonometric functions: Difference between revisions

Content added Content deleted
m (→‎{{header|REXX}}: added several comments and changed others in the header section. -- ~~~~)
m (→‎{{header|REXX}}: used a simplier form of ''numeric form''. -- ~~~~)
Line 1,675: Line 1,675:
numeric digits d; return g/1
numeric digits d; return g/1


.sqrtGuess: if x<0 then call .sqrtErr; numeric form scientific; m.=11; p=d+d%4+2
.sqrtGuess: if x<0 then call .sqrtErr; numeric form; m.=11; p=d+d%4+2
parse value format(x,2,1,,0) 'E0' with g 'E' _ .; return g*.5'E'_%2
parse value format(x,2,1,,0) 'E0' with g 'E' _ .; return g*.5'E'_%2