IntToImaginary

com.phasmidsoftware.number.algebra.eager.Eager.IntToImaginary
implicit class IntToImaginary(x: Int)

Provides an implicit conversion from an Int to an imaginary number representation.

This class allows integers to be interpreted as imaginary numbers by appending .i to an integer. The imaginary number is constructed using the square of the integer negated, combined with the square root notation.

Value parameters

x

the integer to be converted into an imaginary number

Attributes

Graph
Supertypes
class Object
trait Matchable
class Any

Members list

Value members

Concrete fields

lazy val i: Eager

Converts an integer to its imaginary number representation.

Converts an integer to its imaginary number representation.

This method creates an imaginary number by negating the square of the integer and associating it with the square root operator.

Attributes

Returns

a Number instance representing the imaginary number constructed from the integer.