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)
Type: Posts; User: joerg
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)
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]))
{...
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++)
{...
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...
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...
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
I'm using Kdevelop under suse linux 10.2
#include <stdio.h>
#include <stdlib.h>
#include <math.h>
#define N 5
I did !
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:...
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; }
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...
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...
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....