Search:

Type: Posts; User: joerg

Search: Search took 0.00 seconds.

  1. Replies
    0
    Views
    1,252

    partially summation

    I want the delta_s[j]'s be summerized for every PART !
    Can anyone help me ?


    #include <stdio.h>
    #include <stdlib.h>
    #include <math.h>
    #define N 511

    double funcwert(double a)
  2. Replies
    1
    Views
    1,079

    damped oscillator: maxima

    Hallo, i want the minima and maxima within a vector s[500] to be located against t[500]:
    but the code gives out too many points:


    if (fabs(s[i])>fabs(s[i-1]) && fabs(s[i])>fabs(s[i+1]))
    {...
  3. Replies
    2
    Views
    1,383

    dynamical data visualisation

    I want points to be printed in a coordinate system say one per second - usually I give the points to gnuplot, but this is static- I want them to "move"


    for(i=0 ; i<=N ; x+=dx , y+=dy , i++)
    {...
  4. Replies
    1
    Views
    911

    1D-oscillationg w. energy-loss

    Help,
    the particle should go forth and back and each time he's reaching the wall (+1;-1), he should loss velocity, hence energy! But this results in incomensurability = the new dx doesn't fit into...
  5. Replies
    2
    Views
    1,030

    Kdev - how linking to math lib ?

    Kdev wants to know

    1. optional lib's that should be linked: -lm
    2.optional inlude-path: -l/usr/include

    at this point, i'd like to cry! I have changed the No. 2 several times, but with every...
  6. Replies
    9
    Views
    44,126

    Thank you Kurt ! It's a mess. you wright a...

    Thank you Kurt !

    It's a mess.
    you wright a couple of words for source code, therefore you have to go through a jungle of s...
    and Kdelvelop creates an entire PROJEKT !

    Joerg
  7. Replies
    9
    Views
    44,126

    I'm using Kdevelop under suse linux 10.2

    I'm using Kdevelop under suse linux 10.2
  8. Replies
    9
    Views
    44,126

    #include #include #include...

    #include <stdio.h>
    #include <stdlib.h>
    #include <math.h>
    #define N 5

    I did !
  9. Replies
    9
    Views
    44,126

    undefined reference to 'sqrt'

    Help! Where is the mistake ?


    double x = 0.0 , y = 0.0, r = x*x + y*y;
    ...
    printf("\n%i %.2f %.2f %.2f\n",i,x,y,sqrt(r));
    ...ore sqrt(x*x + y*y));

    The compiler tell me things like this:...
  10. Replies
    2
    Views
    1,247

    marching coordinates II

    Anyone out there who can make the x[i] go forth and back ?


    for(i=0;i<N-1;i++)
    {
    if(x[i]<1) x[i+1]=x[i]+Vx*dt;
    else x[i+1]=x[i]-Vx*dt; }
  11. Replies
    30
    Views
    5,073

    I beg your pardon! It has to look like this: ...

    I beg your pardon!

    It has to look like this: 0.0, 0.1 ,... ,1.0 ,0.9 ,...0.1 , 0.0 ,-0.1 ,-0.2 ,... ,-1.0 ,-0.9 ,-0.8 ,... ans so on.

    thank you for your reply anyway!

    Is there a third...
  12. Replies
    30
    Views
    5,073

    Thank you, but I forgot to mention, that the x[i]...

    Thank you, but I forgot to mention, that the x[i] are real numbers, ranging over [-1:1]
    I want to create something like 0.0, 0.1, ...,0.9 , 1.0 , 0.9 , ... ,0.0 , -0.9 , -0.8 , ... , -1.0 , -0.9...
  13. Replies
    30
    Views
    5,073

    Marching coordinates

    x[0]=0;
    y[0]=0;

    for(i=0;i<N-1;i++)
    {
    if(x[i]<1) x[i+1]=x[i]+Vx*dt;
    else x[i+1]=x[i]-Vx*dt;

    Help! I want the coordinates x[i] change from 0 over +1 to -1 and back as often as i<N....
Results 1 to 13 of 13