diff --git a/lib/core/logs.rb b/lib/core/logs.rb index 4d81058..5b21c18 100644 --- a/lib/core/logs.rb +++ b/lib/core/logs.rb @@ -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 diff --git a/lib/core/trig.rb b/lib/core/trig.rb index ed75a46..993de6d 100644 --- a/lib/core/trig.rb +++ b/lib/core/trig.rb @@ -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