Questions tagged [complex-numbers]
Questions about complex numbers (numbers in the form of x + y∙i where i² = -1), types to represent them in programming languages, and libraries to manipulate them
17 questions
1
vote
0
answers
79
views
generate_complex_image Template Function Implementation for Image in C++
This is a follow-up question for Tests for the operators of image template class in C++, Image pixelwise operation function with multiple inputs in C++ and An Updated Multi-dimensional Image Data ...
6
votes
2
answers
608
views
A simple CLI arbitrary-precision Mandelbrot set calculator (for a single point)
I wrote the following C code that takes a couple of arguments on the command line and calculates a given number of iterations of the Mandelbrot set complex mapping using MPFR arbitrary precision ...
2
votes
2
answers
366
views
Template Complex class
I have created a class Complex which represents a complex number of any arbitrary arithmetic type. Overloads are given for the 4 common functions, addition, ...
3
votes
2
answers
260
views
Complex Number class
I wrote a complex number class using JS for practice.
...
2
votes
2
answers
465
views
Shunting Yard Calculator - Extended to negative, complex, etc
This project is based off the shunting yard algorithm and has additional features such as negative value parsing. It's like a scientific calculator. I am looking to improve this project by getting rid ...
6
votes
1
answer
341
views
Complex number class in Lua
This is my first attemp with Lua.
I decided to create this class, because it have lots of "tweaks" and "tricks".
I want to know if I did it as best practices Lua ways.
My Lua ...
3
votes
1
answer
239
views
Python Simple Range and Bearing Calculator using Complex Numbers
I have just written this code that takes an initial coordinate and returns a new vector depending on a user-supplied range and bearing.
The calculation of the new position is done using Complex ...
1
vote
1
answer
114
views
Solving roots of negative numbers
As part of an assignment for college summer classes, I was tasked with writing a program that solves roots of negative numbers. I've ran it through the test cases I was provided and it computes ...
6
votes
5
answers
3k
views
C++ Calculator for complex numbers - follow-up
After following the suggestions from the first question on that topic (link), I'd like to show you the result now:
...
11
votes
3
answers
11k
views
C++ Calculator for complex numbers
I've written a little calculator in C++ for complex numbers:
...
5
votes
1
answer
288
views
Implementing Gaussian integers in Haskell
Currently my code (at GitHub) is this:
...
17
votes
3
answers
3k
views
Radix2 Fast Fourier Transform implemented in C++
Note: If you don't know much about Fourier transform algorithms, a simple review of whether I am doing anything inefficient with C++ in general would be appreciated.
I've been working on implementing ...
4
votes
1
answer
345
views
Complex Newton's Method
I'm trying to build a complex Newton's method. I've submitted a PR here, where you can see the documentation and tests, as well as get a compiling example. I'd appreciate y'alls help reducing the ...
3
votes
0
answers
1k
views
Complex multiplication and integration with CUDA
I want to perform multiplication on two vectors and integrate it in a vector called acc_y. The acc_y variable will update over ...
10
votes
1
answer
736
views
Vectorizing the product of an array of complex numbers
I am trying to write fast/optimal code to vectorize the product of an array of complex numbers. In simple C this would be:
...