Recent content by rolotomassi
-
C/C++ C++ matrix boundary condition problems
I freaking love you! I just assumed negative modulo was fair game. Thanks a lot.- rolotomassi
- Post #3
- Forum: Programming and Computer Science
-
C/C++ C++ matrix boundary condition problems
I have created a matrix with a class called Lattice. The lattice is filled with objects of type 'Dipole' which is created with another class. The problem I am having is with boundary conditions when I look for a neighbour. e.g If i pick a dipole on the top row, I want its 'above' neighbour to be...- rolotomassi
- Thread
- Boundary Boundary condition C++ Condition Matrix
- Replies: 3
- Forum: Programming and Computer Science
-
MATLAB Why am I getting a 'Matrix is singular to working precision' error in Matlab?
Here is a link the code which I am trying to modify. It is the radial average of a matrix function. http://uk.mathworks.com/matlabcentral/fileexchange/46468-radialavg-zip/content/radialavg.m I want to restrict the function to only look within certain angles, e.g. 15 degrees either side of the...- rolotomassi
- Thread
- Error Function Matlab Matrix
- Replies: 2
- Forum: MATLAB, Maple, Mathematica, LaTeX
-
MATLAB How can I smooth pixelated images in MATLAB?
Hi. I have this code in matlab: / / I=dlmread('C:\Users\rshah\Desktop\Polymer Project\monteCarloCode\E=1e8.txt'); F=fft2(I); F = fftshift(F); % Center FFT F = abs(F); % Get the magnitude since F is complex F = log(F+1); % Use log, for perceptual scaling, and +1 since log(0) is undefined...- rolotomassi
- Thread
- Matlab Pixel
- Replies: 1
- Forum: MATLAB, Maple, Mathematica, LaTeX
-
Plot 0s & 1s Matrix in GNUplot: Solve "No Usable Data" Error
Just as I read my post back I realized I have entered the incorrect path file.- rolotomassi
- Post #4
- Forum: Programming and Computer Science
-
Plot 0s & 1s Matrix in GNUplot: Solve "No Usable Data" Error
This what I enter into the command box: gnuplot> set pm3d map gnuplot> splot 'C:\Users\raf\Desktop\PolymerProject\monteCarloCode\directionInitial.txt' As I said I've tried various different spacings in the .txt file.- rolotomassi
- Post #3
- Forum: Programming and Computer Science
-
Plot 0s & 1s Matrix in GNUplot: Solve "No Usable Data" Error
I have a .txt file which is 50 rows x 50 columns filled with entirely 0's and 1's. I have tried to plot the data with and without spaces between each column. I keep getting this message: gnuplot> splot 'C:\Users\raf\Desktop\PolymerProject\monte carlo code\directionInitial.txt' with pm3d...- rolotomassi
- Thread
- Gnuplot Matrix Plot
- Replies: 4
- Forum: Programming and Computer Science
-
Undergrad Lagrangian - surface of sphere
That was the correct integral bar a constant, which has now been solved. Thanks anyway- rolotomassi
- Post #14
- Forum: Beyond the Standard Models
-
Undergrad Lagrangian - surface of sphere
\int 1/(c - 1/2sin^2x)^{1/2} dx is what I've got now- rolotomassi
- Post #12
- Forum: Beyond the Standard Models
-
Undergrad Lagrangian - surface of sphere
The integral is now \int d\theta (c_2 + \frac{c_1^2}{u^2 -1})^{-1/2}= \int dt As I find it. But i get this simplifying to \int du \frac{1}{u^2 - a^2} for the LHS where a^2 is a combination of the other constants. But this is a logarithm when integrating which doesn't make sense for the answer.- rolotomassi
- Post #11
- Forum: Beyond the Standard Models
-
Undergrad Lagrangian - surface of sphere
Solving the integral IS the question. If i could solve the integral I wouldn't be asking for help on solving the integral.- rolotomassi
- Post #9
- Forum: Beyond the Standard Models
-
Undergrad Lagrangian - surface of sphere
I start again and get \dot \theta = c_1 \int \frac{u}{(1-u^2)^{3/2}} \frac{dt}{du}du But still abit stuck. If I sub in du/dt I keep getting a theta dot term. But I can't just assume u dot is independent of u and take it out the integral either. Brain is really hitting brick wall after brick...- rolotomassi
- Post #7
- Forum: Beyond the Standard Models
-
Undergrad Lagrangian - surface of sphere
wow I'm being stupid today. If i separate the variables I get \int \frac{1}{ \sqrt[]{(c_1 - c_2/sin^2{\theta} )} }d \theta \ = \ \int dt- rolotomassi
- Post #5
- Forum: Beyond the Standard Models
-
Undergrad Lagrangian - surface of sphere
You're right it was. What I get now which I am pretty sure is correct is this horrible integral \theta = \frac{1}{\omega} \int \sqrt[]{ c_1 - c_2/sin^2{\theta} } \ d \theta Which I also have no idea how to solve :S- rolotomassi
- Post #3
- Forum: Beyond the Standard Models
-
Undergrad Lagrangian - surface of sphere
I have a free particle moving on the surface of a sphere of fixed radius R. Gravity is ignored and m/2 is left out since its constant. The lagrangian is L = R^2 \dot{\theta^2} + R^2 sin^2{\theta} \dot{\phi^2} Using the Euler Lagrange equations I obtain sin^2{\theta} \dot{\phi} = A = const \...- rolotomassi
- Thread
- Lagrangian Sphere Surface
- Replies: 13
- Forum: Beyond the Standard Models