close Warning: Can't synchronize with repository "(default)" (/var/svn/tolp does not appear to be a Subversion repository.). Look in the Trac log for more information.

Opened 19 years ago

Closed 19 years ago

Last modified 18 years ago

#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 Víctor de Buen Remiro

Owner: changed from danirus to Víctor de Buen Remiro

Thanks to report it

comment:2 Changed 19 years ago by Víctor de Buen Remiro

Resolution: fixed
Status: newclosed

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 Víctor de Buen Remiro

bug_file_loc: http://cvs.tol-project.org/viewcvs.cgi/tol_tests/tol/Bugzilla/bug_000425
Note: See TracTickets for help on using tickets.