You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Basic arithmetic: addition, subtraction, multiplication and division.
Note: the multiplication and division functions should both my mulDivSigned function to prevent intermediary overflows. Also, let me know if a mulDivSigned18 function would be useful here.
Complex conjugate function.
Complex modulus function (also called complex norm).
Test the functions you wrote with PRBTest. To generate the expected values, use WolframAlpha and then hardcode them in the tests. Try to be explicit and name the expected values though.
reacted with thumbs up emoji reacted with thumbs down emoji reacted with laugh emoji reacted with hooray emoji reacted with confused emoji reacted with heart emoji reacted with rocket emoji reacted with eyes emoji
-
Todo
Open-ended Questions
i
?Code Snippets
Enum
enum I { ExistPositive, ExistNegative, NotExist }
Complex Type
struct C59x18 { SD59X18 a; SD59x18 b; }
Beta Was this translation helpful? Give feedback.
All reactions