README.md in danica-2.0.4 vs README.md in danica-2.0.5
- old
+ new
@@ -39,16 +39,16 @@
#optionaly implement custom to_gnu method
end
private
- def tex_string
- #implement tex_string here
+ def to_tex
+ #implement to_tex here
end
- def gnu_string
- #implement gnu_string here
+ def to_gnu
+ #implement to_gnu here
end
end
```
#### Sample
```ruby
@@ -59,14 +59,14 @@
value.to_f ** -1 #Do not worry with nil value as this has been implemented already raising Danica::Exception::NotDefined
end
private
- def tex_string
+ def to_tex
"(#{value.to_tex})^{-1}"
end
- def gnu_string
+ def to_gnu
"(#{value.to_gnu}) ** -1"
end
end
fx = Danica::Inverse.new(:x)