nuevochoque - #include <iostream> #include...

Info iconThis preview shows pages 1–2. Sign up to view the full content.

View Full Document Right Arrow Icon
#include <iostream> #include <cmath> #include "Vector.h" #include "Random.h" using namespace std; #define N 10 const double Deltat=0.001; const double kcoulomb = 8.987e9; const double Malfa=1; const int Nucleos=10;//pared de nucleos const int Grosor=5;//grosor de la lamina const double RadioN= 1.44e-10; const double z= 2; const double Z= 79; const double e=1; const double Rbohr= 5.291722e-11; const double Vbohr= 2.187691e6; // masaelectron 9.10e-31 //kg //masa alfa= 8000*masaelectron class Cuerpo; class Colisionador; class Detector; //------------Class Cuerpo class Cuerpo{ private: double m,R; vector3D r,V,F; vector3D rold, rnew; public: void Inicie(double m0,double R0,double x0,double y0,double Vx0,double Vy0); void CalculeFuerza(void); void Arranque(double dt); void Muevase(double dt); void Dibujese(void); double Getx(void){return r.x();}; //Inline double Gety(void){return r.y();}; //Inline double Dispersion(double Velocidad); }; void Cuerpo:: Inicie(double m0,double R0,double x0,double y0,double Vx0,double Vy0)
Background image of page 1

Info iconThis preview has intentionally blurred sections. Sign up to view the full version.

View Full DocumentRight Arrow Icon
Image of page 2
This is the end of the preview. Sign up to access the rest of the document.

This note was uploaded on 08/21/2011 for the course PHYS 101 taught by Professor Daniel during the Spring '11 term at Universidad Nacional de Colombia.

Page1 / 3

nuevochoque - #include &lt;iostream&gt; #include...

This preview shows document pages 1 - 2. Sign up to view the full document.

View Full Document Right Arrow Icon
Ask a homework question - tutors are online