Skip to content

About

No description, website, or topics provided.

Resources

Stars

0 stars

Watchers

1 watching

Forks

Latest commit

 

History

12 Commits

Folders and files

Repository files navigation

ComplexNumber

Project contains an implementation of a Rust structure representing a complex number.

Current functionalities:

  • calculating modulus and argument of a number,
  • logical operators '==' and '!=',
  • arithmetic operators '+', '-', '*' and '/' for two complex numbers,
  • '+' operator for complex number and 64 bit float (implementation for other operators similar so I will skip it),
  • formatting ComplexNumber to String: "x+yi",
  • getting input from a user for a complex number with negative imaginary part,
  • reading complex data.

TODO:

  • '!' (or other) operator for conjugation of a given number,
  • generic type instead of float.

About

No description, website, or topics provided.

Resources

Stars

0 stars

Watchers

1 watching

Forks

Releases

Packages

Used by

Contributors

Languages