#425 closed defect (fixed)
Complex vs. Real
Reported by: | giken019 | Owned by: | Víctor de Buen Remiro |
---|---|---|---|
Priority: | highest | Milestone: | |
Component: | Math | Version: | head |
Severity: | blocker | Keywords: | |
Cc: |
Description
Hi
A problem when passing from Real to complex. Using the functions or
Real AA = -1.2;
Complex a = AA;
Complex b = 2;
Complex u = ab;
Returns the value u = -1.44+0i
The problem seems to originate when passing from a Real to a Complex number. Would there be functions that can be used to pass from Comlplex to Real or the other way around? I guess if I could pass the value to Complex before passing it 2 the problem would be partly solved.
Change History (3)
comment:1 Changed 19 years ago by
Owner: | changed from danirus to Víctor de Buen Remiro |
---|
comment:2 Changed 19 years ago by
Resolution: | → fixed |
---|---|
Status: | new → closed |
Bug has been fixed in CVS.
In void BComplex::PutReal(BDat x) M_PI_2 must be replaced by M_PI
comment:3 Changed 18 years ago by
bug_file_loc: | → http://cvs.tol-project.org/viewcvs.cgi/tol_tests/tol/Bugzilla/bug_000425 |
---|
Thanks to report it