Find square difference: Difference between revisions
RPL algebraic approach
(add RPL) |
(RPL algebraic approach) |
||
Line 693:
</pre>
The above program takes 16.4 seconds to be executed on a HP-28S.
===Algebraic approach===
≪ 'n^2-(n-1)^2-1000'
EXPAN COLCT 'N' ISOL CEIL
≫ EVAL
which returns the same result in only 9.2 seconds.
=={{header|Sidef}}==
|