Class: CAS::E_CONSTANT
Overview
Class that represents the constant E (e)
Instance Attribute Summary
Attributes inherited from Op
Instance Method Summary collapse
-
#initialize ⇒ E_CONSTANT
constructor
Initializer for the E constant.
-
#to_s ⇒ Object
String representation for the constant.
Methods inherited from Constant
#==, #args, #call, #depend?, #diff, #inspect, #simplify, #subs, #to_dot
Methods inherited from Op
#!=, #*, #**, #+, #-, #-@, #/, #==, #args, #as_proc, #call, #depend?, #diff, #dot_graph, #equal, #greater, #greater_equal, init_simplify_dict, #inspect, #limit, numeric_to_const, #simplify, simplify_dict, #simplify_dictionary, #smaller, #smaller_equal, #subs, #to_c_lib, #to_code
Constructor Details
#initialize ⇒ E_CONSTANT
Initializer for the E constant
* **returns**: `CAS::E_CONSTANT` new instance
255 256 257 |
# File 'lib/numbers/constants.rb', line 255 def initialize @x = Math::E end |
Instance Method Details
#to_s ⇒ Object
String representation for the constant
* **returns**: `String`
262 263 264 |
# File 'lib/numbers/constants.rb', line 262 def to_s "e" end |