Anonymous user
Chebyshev coefficients: Difference between revisions
m
→{{header|REXX}}: used a more idiomatic expression for calculation of numeric digits.
m (→{{header|REXX}}: added/changed whitespace and comments.) |
m (→{{header|REXX}}: used a more idiomatic expression for calculation of numeric digits.) |
||
Line 987:
The numeric precision is dependent on the number of decimal digits specified in the value of '''pi'''.
<lang rexx>/*REXX program calculates N Chebyshev coefficients for the range 0 ──► 1 (inclusive)*/
numeric digits length( pi() ) -
parse arg a b N . /*obtain optional arguments from the CL*/
if a=='' | a=="," then a= 0 /*A not specified? Then use default.*/
|