math: minor doc fixes
parent
cc93fc69ff
commit
ef353b5eff
|
@ -48,6 +48,7 @@ ARTICLE: "power-functions" "Powers and logarithms"
|
||||||
{ $subsection exp }
|
{ $subsection exp }
|
||||||
{ $subsection cis }
|
{ $subsection cis }
|
||||||
{ $subsection log }
|
{ $subsection log }
|
||||||
|
"Other logarithms:"
|
||||||
{ $subsection log1+ }
|
{ $subsection log1+ }
|
||||||
{ $subsection log10 }
|
{ $subsection log10 }
|
||||||
"Raising a number to a power:"
|
"Raising a number to a power:"
|
||||||
|
|
|
@ -6,7 +6,7 @@ ARTICLE: "math.libm" "C standard library math functions"
|
||||||
{ $warning
|
{ $warning
|
||||||
"These functions are unsafe. The compiler special-cases them to operate on floats only. They can be called directly, however there is little reason to do so, since they only implement real-valued functions, and in some cases place restrictions on the domain:"
|
"These functions are unsafe. The compiler special-cases them to operate on floats only. They can be called directly, however there is little reason to do so, since they only implement real-valued functions, and in some cases place restrictions on the domain:"
|
||||||
{ $example "USE: math.functions" "2.0 acos ." "C{ 0.0 1.316957896924817 }" }
|
{ $example "USE: math.functions" "2.0 acos ." "C{ 0.0 1.316957896924817 }" }
|
||||||
{ $unchecked-example "USE: math.libm" "2 facos ." "0/0." } }
|
{ $unchecked-example "USE: math.libm" "2.0 facos ." "0/0." } }
|
||||||
"Trigonometric functions:"
|
"Trigonometric functions:"
|
||||||
{ $subsection fcos }
|
{ $subsection fcos }
|
||||||
{ $subsection fsin }
|
{ $subsection fsin }
|
||||||
|
@ -20,6 +20,7 @@ ARTICLE: "math.libm" "C standard library math functions"
|
||||||
"Exponentials and logarithms:"
|
"Exponentials and logarithms:"
|
||||||
{ $subsection fexp }
|
{ $subsection fexp }
|
||||||
{ $subsection flog }
|
{ $subsection flog }
|
||||||
|
{ $subsection flog10 }
|
||||||
"Powers:"
|
"Powers:"
|
||||||
{ $subsection fpow }
|
{ $subsection fpow }
|
||||||
{ $subsection fsqrt } ;
|
{ $subsection fsqrt } ;
|
||||||
|
@ -66,6 +67,10 @@ HELP: flog
|
||||||
{ $values { "x" real } { "y" real } }
|
{ $values { "x" real } { "y" real } }
|
||||||
{ $description "Calls the natural logarithm function from the C standard library. User code should call " { $link log } " instead." } ;
|
{ $description "Calls the natural logarithm function from the C standard library. User code should call " { $link log } " instead." } ;
|
||||||
|
|
||||||
|
HELP: flog10
|
||||||
|
{ $values { "x" real } { "y" real } }
|
||||||
|
{ $description "Calls the base 10 logarithm function from the C standard library. User code should call " { $link log10 } " instead." } ;
|
||||||
|
|
||||||
HELP: fpow
|
HELP: fpow
|
||||||
{ $values { "x" real } { "y" real } { "z" real } }
|
{ $values { "x" real } { "y" real } { "z" real } }
|
||||||
{ $description "Calls the power function (" { $snippet "z=x^y" } ") from the C standard library. User code should call " { $link ^ } " instead." } ;
|
{ $description "Calls the power function (" { $snippet "z=x^y" } ") from the C standard library. User code should call " { $link ^ } " instead." } ;
|
||||||
|
|
Loading…
Reference in New Issue