Sha256: ae235db4f5f6c39cba2c7d6ba79df17b83009074bc8947dcd8a1745b94b5fac8
Contents?: true
Size: 218 Bytes
Versions: 3
Compression:
Stored size: 218 Bytes
Contents
# frozen_string_literal: true class MyOperator < Danica::Operator variables :x def to_f (x**Danica::PI).to_f end def to_tex "#{x.to_tex}^{\\pi}" end def to_gnu "#{x.to_tex}**(pi)" end end
Version data entries
3 entries across 3 versions & 1 rubygems
Version | Path |
---|---|
danica-2.7.7 | spec/support/models/operator/my_operator.rb |
danica-2.7.6 | spec/support/models/operator/my_operator.rb |
danica-2.7.5 | spec/support/models/operator/my_operator.rb |