require 'complex'
3r + 4i
r, i, and ri.
Rational(42, 1) and 3.14.rationalize,
respectively. But exponential form with r suffix like "6.022e+23r" is
not accepted because it is misleading.Complex(0, 42) and Complex(0, 3.14),
respectively.Complex(0, 42r) and Complex(0, 3.14r),
respectively.