Sam Hocevar
|
593aa3af70
|
core: implement sin(), cos() and abs() for reals and fix a crash in the
addition and subtraction operators occurring when exponents were too
different.
|
13 年前 |
Sam Hocevar
|
c0edb49ed6
|
core: add exp() for real numbers and fix the == operator.
|
13 年前 |
Sam Hocevar
|
908b2b3b95
|
real: fix a bug in the real number multiplication when one of the arguments
is zero.
|
13 年前 |
Sam Hocevar
|
02bcc443f6
|
core: add sqrt() for real numbers.
|
13 年前 |
Sam Hocevar
|
58ee1d5b81
|
core: add operators +=, *= etc. to the real class, and refactor the
print() method so that it displays decimal values.
|
13 年前 |
Sam Hocevar
|
058d88232d
|
core: add rounding to real->double conversion, fix a bug in the addition
code shortcut, fix bugs in the addition and subtraction, another one in
the multiplication code, and add new unit tests for most of these.
|
13 年前 |
Sam Hocevar
|
cdc155c42b
|
core: allow to cast reals to doubles in addition to floats.
|
13 年前 |
Sam Hocevar
|
325ea94821
|
core: implement division of reals and change their default precision
to 32 bigits.
|
13 年前 |
Sam Hocevar
|
93479c2876
|
core: implement real subtraction.
|
13 年前 |
Sam Hocevar
|
a173e49ddc
|
core: implement comparison operators for reals.
|
13 年前 |
Sam Hocevar
|
48f00deff9
|
core: fix real unary minus and handle negative numbers in additions.
|
13 年前 |
Sam Hocevar
|
884978c71b
|
core: handle zero, negative zero and infinite in the real constructor,
and add a test suite check for unary minus.
|
13 年前 |
Sam Hocevar
|
dbb0463f4c
|
core: start working on the extended floating point addition.
|
13 年前 |
Sam Hocevar
|
202ac6aaf3
|
core: switch real mantissa to uint16_t instead of uint32_t to ease the
multiplication.
|
13 年前 |
Sam Hocevar
|
5fc298964b
|
core: start working on a "real" class for arbitrarily sized floats.
|
13 年前 |