Rpl::Core ⇒ Rpl::Lang::Core
This commit is contained in:
parent
68c8a4e178
commit
59c40c5bf9
2 changed files with 20 additions and 16 deletions
|
@ -1,14 +1,16 @@
|
|||
module Rpl
|
||||
module Core
|
||||
module_function
|
||||
module Lang
|
||||
module Core
|
||||
module_function
|
||||
|
||||
# Euler constant
|
||||
def e( stack, dictionary )
|
||||
stack << { type: :numeric,
|
||||
base: 10,
|
||||
value: BigMath.E( Rpl::Core.precision ) }
|
||||
# Euler constant
|
||||
def e( stack, dictionary )
|
||||
stack << { type: :numeric,
|
||||
base: 10,
|
||||
value: BigMath.E( Rpl::Core.precision ) }
|
||||
|
||||
[stack, dictionary]
|
||||
[stack, dictionary]
|
||||
end
|
||||
end
|
||||
end
|
||||
end
|
||||
|
|
|
@ -1,14 +1,16 @@
|
|||
module Rpl
|
||||
module Core
|
||||
module_function
|
||||
module Lang
|
||||
module Core
|
||||
module_function
|
||||
|
||||
# pi constant
|
||||
def pi( stack, dictionary )
|
||||
stack << { type: :numeric,
|
||||
base: 10,
|
||||
value: BigMath.PI( Rpl::Core.precision ) }
|
||||
# pi constant
|
||||
def pi( stack, dictionary )
|
||||
stack << { type: :numeric,
|
||||
base: 10,
|
||||
value: BigMath.PI( Rpl::Core.precision ) }
|
||||
|
||||
[stack, dictionary]
|
||||
[stack, dictionary]
|
||||
end
|
||||
end
|
||||
end
|
||||
end
|
||||
|
|
Loading…
Add table
Reference in a new issue