rpl.rb/lib/core/trig.rb

17 lines
301 B
Ruby
Raw Normal View History

2021-12-02 15:33:22 +01:00
module Rpl
2021-12-15 13:33:06 +01:00
module Lang
module Core
module_function
2021-12-02 15:33:22 +01:00
2021-12-15 13:33:06 +01:00
# pi constant
def pi( stack, dictionary )
stack << { type: :numeric,
base: 10,
value: BigMath.PI( Rpl::Core.precision ) }
2021-12-15 13:33:06 +01:00
[stack, dictionary]
end
2021-12-02 15:33:22 +01:00
end
end
end