Thanks very much. I thought it might be something like that, but was unsure. You've really helped me a lot with this.
Type: Posts; User: lordbubonicus
Thanks very much. I thought it might be something like that, but was unsure. You've really helped me a lot with this.
Swoopy: The numbering of the for loops doesn't seem to have any effect if I change it. However, you're probably right that it should begin at 0 so I'll do so.
Any idea why the printf statements...
Update again, I've fixed the segmentation fault and my program appears to be working now. I say appears, becasue I'm currently still trying to test it.
Ok, after some further error checking it seems as though the segmentation fault lies somewhere in this section of code:
But I'm still stumped as to what's causing it.
Thanks for the help Swoopy. However:
The second parameter to padme does have to be a pointer, as that's what my specification says and I'm not allowed to alter it. Also, if I try your suggestions...
Ok, I've had a breakthrough - strange how it happens isn't it. I've now fixed the problem with the array sizes. I realised that
*two_numdata=arraysize;
was the wrong way round for what I wanted....
well a couple of weeks have passed, and due to a group project that I'm working on for my course the programming has taken a bit of a back seat. I've not really progressed, and I'm still having...
Thanks very much Salem, as usual you've helped me greatly.
The reason for outputptr is that in the final version of the code, with the FFT added, it will be used. But at this stage it's not...
Hi everyone,
The community here has been very helpful to me with my previous problems, so I hope that you can offer some advice with this.
I've been set a problem involving a Fast Fourier...
Thanks very much for the help Salem.
In the end I used a different algortihm for the integral, but still had problems with the short form. So I forced the program to compute the answer using the...
The difference from the expected result is in the value of d_w - the value I obtain of 69.75 is just over half of the expected value of 127.33. I'm not concerned about the differenc in the value of...
Hi everybody,
I'm writing a program to evaluate Dawson's integral and use it to calculate some parameters for a theoretical particle beam. I'm using the function Dawson from Numerical recipes in C...
I don't really have any code for the differentiation at the moment, I'm just looking for starting points. Hence why I didn't post any.
When I say smooths, I mean that it tries to remove some of...
Hi there,
I'm currently working on a program that takes a set of data and smooths it using an n-point running average, with mirrored end points. I then need the program to differentiate the...
Thanks you very much. That's solved that problem. I can't believe I missed that.
Although i'm still getting a value of Inf for the value of the integral. Is that likely to be because I'm...
Hello everyone,
I've been reading these boards for a week or so and have gained some useful pointers from it. However I am still having trouble with the program that I am currently trying to...