Find square difference: Difference between revisions

Content added Content deleted
(add RPL)
(RPL algebraic approach)
Line 693: Line 693:
</pre>
</pre>
The above program takes 16.4 seconds to be executed on a HP-28S.
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}}==
=={{header|Sidef}}==