From 59c40c5bf960af1fe0dfb8f332bd465ec9f66e09 Mon Sep 17 00:00:00 2001 From: Gwenhael Le Moine Date: Wed, 15 Dec 2021 13:33:06 +0100 Subject: [PATCH] =?UTF-8?q?Rpl::Core=20=E2=87=92=20Rpl::Lang::Core?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- lib/core/logs.rb | 18 ++++++++++-------- lib/core/trig.rb | 18 ++++++++++-------- 2 files changed, 20 insertions(+), 16 deletions(-) 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