Suppose I did not know their size, which is not the case in this example, so I've allocated arrays dynamically, and this is my example:
#include <stdio.h>
#include <complex.h>
#include...
Type: Posts; User: figura
Suppose I did not know their size, which is not the case in this example, so I've allocated arrays dynamically, and this is my example:
#include <stdio.h>
#include <complex.h>
#include...
anduril462, sorry I think I did not expressed myself in the right way. I can do these operations with other number types, and with things I read, now I saw that the allocation is the same.My question...
anduril462, your guess was wrong, my problens are with complex type.
Please, I would like to know how fill a complex arrary when the elements are in ohter array.
thanks
Please, I am beginner and I need to work with complex matrices in C, but do not know how to work with that type. I have an idea of how working with complex numbers, it would just declare a variable...
Please,does anyone knows a function in free libraries to compute a matrix which every terms are:
e^(-iBC)
where:
-i means complex
B and C are terms that I know
The code already complies before but gave problems when running, but now WORKED !!!!!
I changed two things:
when I was allocating the matrix was
if (v[i]=NULL)
Please, help me if you can.
When I printed the vector vetout I could see it.
So what should I do?
Sorry, this isn't the problem, in the original code p is defined like float *p, with *y and **A in the main, I just forgot to put here.
I'd allocated vetout in the begin of the function...
Hello, I'm beginner in C, use kdevelop -> Qt: 3.3.6 KDE: 3.5.4-Red Hat 25.el5.centos.1 KDevelop: 3.3.4
and the compiler is gcc version 4.1.2 20080704 (Red Hat 4.1.2-48)
My doubt is that I made a...