Overview
Examples
Screenshots
Comparisons
Applications
Download
Documentation
Tutorials
Bazaar
Status & Roadmap
FAQ
Authors & License
Forums
Funding Ultimate++
Search on this site
Search in forums












SourceForge.net Logo
Home » U++ Library support » U++ Core » [DISCUSSION] Add 'complex' datatype, to Value too
Re: [DISCUSSION] Add 'complex' datatype, to Value too [message #32804 is a reply to message #32803] Fri, 10 June 2011 22:52 Go to previous messageGo to previous message
dolik.rce is currently offline  dolik.rce
Messages: 1791
Registered: August 2008
Location: Czech Republic
Ultimate Contributor

Hi!

You are right about U++ missing the basic mathematical tools. As a physicist, I have needed the complex numbers in my programs many times. The same goes for many other mathematical tools.

Complex type doesn't really fit into Core, but what about creating a Math package, that would include such tools? It could also use the Eigen package (btw: I think there is already a complex numbers type in eigen, what about just wrapping that one?) and the fftw package you talked about. And possibly others, as they emerge.

About your proposed implementation: It looks quite good, from the quick look it has most of the basic functions I ever needed... I don't think I would really use a Value compatibility, but if you write it, I won't mind I have only one objection: The "complex::i" is not very useful. It is too long to use in equations Smile I would prefer something like global constant/macro named just "I". In uppercase to avoid problems with "int i", which is on thousands of places in any program I know Wink

Best regards,
Honza

 
Read Message
Read Message
Read Message
Read Message
Read Message
Read Message
Read Message
Read Message
Read Message
Read Message
Read Message
Read Message
Read Message
Read Message
Read Message
Read Message
Read Message
Read Message
Read Message
Read Message
Read Message
Read Message
Read Message
Read Message
Read Message
Read Message
Read Message
Read Message
Read Message
Read Message
Read Message
Read Message
Read Message
Read Message
Read Message
Read Message
Read Message
Read Message
Read Message
Read Message
Read Message
Read Message
Read Message
Read Message
Previous Topic: Bugs in Tuple, RemoveSorted and in Scribble Example
Next Topic: PLATFORM_X11 warnings
Goto Forum:
  


Current Time: Tue Apr 29 20:02:05 CEST 2025

Total time taken to generate the page: 0.00976 seconds