Posts
 
Reputation
Joined
Last Seen
0 Reputation Points
Unknown Quality Score

No one has voted on any posts yet. Votes from other community members are used to determine a member's reputation amongst their peers.

0 Endorsements
~145 People Reached
Favorite Forums
Favorite Tags
c++ x 3
Member Avatar for reolynda

// so guys this how i program about random walk of partilce..somehow... R ~ N^1/2 i got a huge different comparing simulation value and calculation(theoritical) .how i wanna to reduce different i got,,,/ N=number of steps... R= value from therom phitogoras R=(a^2 + b^2)^1/2..... [CODE]#include <iostream> #include <math.h> #include <time.h> …

0
50
Member Avatar for reolynda

[CODE]#include <iostream> using namespace std; int main() { int i,j; float a[10][10]; for (i=0; i<10; i++) { for (j=0; j<10; j++) { a[i][j]=0.2; a[i][j]=a[i][j]-0.2; cout<<a[i][j]<<"\n"; } } } [/CODE] //// why is the output not exactly 0.00 ??? how do i make it output 0.00

Member Avatar for reolynda
0
95