|
||||||
| General Programming Non language specific, Assembly, Linux/Unix, Mac and anything not covered in other topics. Talk about Programming Theory here. |
![]() |
|
|
LinkBack | Thread Tools | Search this Thread | Display Modes |
|
|||
|
How useful would complex numbers be in a programming language?
There are eight basic arithmetic operations in my language, more complex operations are in a separate mathematic library, so it wouldn't be a fully fledged system for using complex numbers.
So far my language has only three data types, bit (b), integer (n), and fraction (n,d), but I've been wondering whether it would be useful to add a complex (a,bi) data type too. |
| Sponsored Links |
|
|
|
|||||
|
Honestly I have no idea where complex numbers would be used in computer science, I've been programming for four years and haven't come across them - I am eagerly waiting WingedPanther's reply!
__________________
CodeCall Blog | CodeCall Wiki | Shareware | Linux Forum | My Blog Chat with other CodeCall members on IRC; connect to irc.codecall.net and join #codecall |
|
|||||
|
Not to leave Sidewinder disappointed...
The usefulness of adding complex numbers will depend heavily on your target audience. If you are going after the scientific community, it would be nice to include. If you are targeting business/web apps, it probably wouldn't help much. Another question would be: is this an OOP language which would allow you to define a new datatype. One of the first things I would do, however, is check on the IEEE specifications on data types, as this will give your language standards defined behavior.
__________________
CodeCall Blog | CodeCall Wiki | Shareware | Linux Forum Chat with other CodeCall members on IRC; connect to irc.codecall.net and join #codecall |
|
|||
|
Quote:
The language is almost like C, but regular and very strict. It is also very minimalistic and has a few very useful features not found in C. And absolutely no OOP! Not even if hell froze over! For creating new types you have enum and struct, and so far I cannot see the need for anything more. The language is also purely procedural. One of the main reasons I began creating this language (besides creating a language I myself am happy with) was to get away from everything OOP and away from bloated GCC, Visual Studio, .net, and whatnot. *drooool* I love TCC! A minimalistic, strict, regular, simple, "universal" programming language, based on C...with a few twists (-_^) |
|
|||||
|
Thats blasphemy
![]()
__________________
CodeCall Blog | CodeCall Wiki | Shareware | Linux Forum | My Blog Chat with other CodeCall members on IRC; connect to irc.codecall.net and join #codecall |
| Sponsored Links |
|
|
|
|||||
|
It sounds like your language will be competing with C/Fortran, which seem to be the favorite languages for scientists/engineers. You may want to look at some of their language specifications to get some ideas for what to include.
__________________
CodeCall Blog | CodeCall Wiki | Shareware | Linux Forum Chat with other CodeCall members on IRC; connect to irc.codecall.net and join #codecall |
![]() |
| Currently Active Users Viewing This Thread: 1 (0 members and 1 guests) | |
| Thread Tools | Search this Thread |
| Display Modes | |
|
|
Similar Threads
|
||||
| Thread | Thread Starter | Forum | Replies | Last Post |
| problem with large numbers | saurav | C and C++ | 4 | 10-11-2007 04:52 PM |
| *!!! HELP: I need a C program that converts words into numbers and vice versa !!!* | james24587 | C and C++ | 2 | 10-01-2007 11:10 AM |
| Generating Random Numbers with PHP | Paradine | PHP Tutorials | 4 | 08-27-2007 07:09 PM |
| Random Generator of Unequal Numbers | Paradine | PHP Tutorials | 0 | 08-26-2007 02:11 PM |
| Return random numbers without duplicates | Paradine | PHP Tutorials | 0 | 08-26-2007 02:07 PM |