Jump to content

Real constants and functions: Difference between revisions

no edit summary
No edit summary
Line 33:
ceil(x) // ceiling
x ^ y // exponentiation</lang>
 
=={{header|6502 Assembly}}==
None of these are built-in, irrational constants are best implemented with lookup tables.
Absolute value can be handled like so:
 
<lang 6502asm>GetAbs: ;assumes value we want to abs() is loaded into accumulator
eor #$ff
clc
adc #1
rts</lang>
 
 
=={{header|ACL2}}==
1,489

edits

Cookies help us deliver our services. By using our services, you agree to our use of cookies.