mirror of
https://github.com/lcn2/calc.git
synced 2025-08-16 01:03:29 +03:00
document in LIBRARY, q_to_c() that was previously added
Added q_to_c(NUMBER *q) to make it easier to convert a NUMBER into an allocated COMPLEX value.
This commit is contained in:
3
CHANGES
3
CHANGES
@@ -148,6 +148,9 @@ The following are the changes from calc version 2.14.3.5 to date:
|
|||||||
a COMPLEX value that is real (imag part is 0) into a NUMBER and
|
a COMPLEX value that is real (imag part is 0) into a NUMBER and
|
||||||
optionally free the COMPLEX value. The func.c code now uses c_to_q().
|
optionally free the COMPLEX value. The func.c code now uses c_to_q().
|
||||||
|
|
||||||
|
Added q_to_c(NUMBER *q) to make it easier to convert a NUMBER
|
||||||
|
into an allocated COMPLEX value.
|
||||||
|
|
||||||
Added new vercos(x, [,eps]) for versed cosine and covercos(x, [,eps])
|
Added new vercos(x, [,eps]) for versed cosine and covercos(x, [,eps])
|
||||||
for inverse versed cosine.
|
for inverse versed cosine.
|
||||||
|
|
||||||
|
7
LIBRARY
7
LIBRARY
@@ -653,6 +653,13 @@ The 2nd argument to c_to_q() determines if the complex argument should be freed
|
|||||||
or not. Pass a false value as the 2nd arg if you wish to continue to use the
|
or not. Pass a false value as the 2nd arg if you wish to continue to use the
|
||||||
COMPLEX value.
|
COMPLEX value.
|
||||||
|
|
||||||
|
To convert a NUMBER into a COMPLEX value, use:
|
||||||
|
|
||||||
|
COMPLEX *c;
|
||||||
|
NUMBER *q;
|
||||||
|
|
||||||
|
c = q_to_c(q);
|
||||||
|
|
||||||
There are three predefined values for complex numbers. You should clink
|
There are three predefined values for complex numbers. You should clink
|
||||||
them when you want to use them. They are _czero_, _cone_, and _conei_.
|
them when you want to use them. They are _czero_, _cone_, and _conei_.
|
||||||
These have the values 0, 1, and i.
|
These have the values 0, 1, and i.
|
||||||
|
Reference in New Issue
Block a user