mexprp icon indicating copy to clipboard operation
mexprp copied to clipboard

Implement operations for rug::Rational

Open IntrepidPig opened this issue 6 years ago • 1 comments

  • [x] add
  • [x] sub
  • [x] mul
  • [x] div
  • [ ] pow
  • [ ] sqrt
  • [ ] nrt
  • [ ] abs
  • [ ] sin
  • [ ] cos
  • [ ] tan
  • [ ] asin
  • [ ] acos
  • [ ] atan
  • [ ] atan2
  • [ ] floor
  • [ ] ceil
  • [ ] round
  • [ ] log

IntrepidPig avatar Apr 07 '18 00:04 IntrepidPig

I think the majority of these unimplemented ones won't be achievable within rug::Rational... I'm fairly sure that the only ones that make sense are

  • add/sub/mul/div
  • abs
  • floor
  • ceil
  • round

because all the others can result in irrational numbers (unless you restricted "pow" to only work for non-negative integers).

autumnull avatar Aug 04 '21 19:08 autumnull