How to resolve the algorithm Arbitrary-precision integers (included) step by step in the ooRexx programming language
Published on 12 May 2024 09:40 PM
How to resolve the algorithm Arbitrary-precision integers (included) step by step in the ooRexx programming language
Table of Contents
Problem Statement
Using the in-built capabilities of your language, calculate the integer value of:
Let's start with the solution:
Step by Step solution about How to resolve the algorithm Arbitrary-precision integers (included) step by step in the ooRexx programming language
Source code in the oorexx programming language
--REXX program to show arbitrary precision integers.
numeric digits 200000
check = '62060698786608744707...92256259918212890625'
start = .datetime~new
n = 5 ** (4 ** (3**2))
time = .datetime~new - start
say 'elapsed time for the calculation:' time
say
sampl = left(n, 20)"..."right(n, 20)
say ' check:' check
say 'Sample:' sampl
say 'digits:' length(n)
say
if check=sampl then say 'passed!'
else say 'failed!'
You may also check:How to resolve the algorithm Multiplication tables step by step in the MOO programming language
You may also check:How to resolve the algorithm Fibonacci sequence step by step in the Erlang programming language
You may also check:How to resolve the algorithm Shoelace formula for polygonal area step by step in the ALGOL 68 programming language
You may also check:How to resolve the algorithm Old Russian measure of length step by step in the M2000 Interpreter programming language
You may also check:How to resolve the algorithm Draw a cuboid step by step in the Prolog programming language