Recent content by Sdakouls

  1. S

    Time-reversal operator for fermions (Sakurai)

    In Modern Quantum Mechanics (2nd ed.) by J.J. Sakurai, in section 4.4 on 'The Time-Reversal Discrete Symmetry' he derives the time-reversal operator, \Theta, for the spin-$\frac{1}{2}$ case as (pg.: 277, eq. (4.4.65)): \Theta = \eta e^{\frac{-i \pi S_{y}}{\hbar}}K = -i \eta \left(...
  2. S

    Reading multiple data types from .txt in C

    Problem solved by a helpful officemate. Mods: Delete thread.
  3. S

    Reading multiple data types from .txt in C

    Hi, I'm wondering if anyone would be able to help me with the following problem: I have an input file in the form (values delimited by spaces): 0.0 0.0 0.0 Ga 0.5 0.5 0.5 As 1.0 1.0 1.0 In . . . and so on. (Basically it's a .txt containing x, y and z coordinates of atoms in a crystal...
  4. S

    Fortran Fortran 95 & complex numbers question

    Yesterday was my first time ever writing something in f95. And besides, I didn't even know that manual existed until you pointed me to it. I googled the question and came up with a bunch of similar errors but no solution. So be nice. Also, if it peeves you so much, let me remind you that you're...
  5. S

    Fortran Fortran 95 & complex numbers question

    I tried that before I posted and it didn't work. And I have no idea why not. Also, I actually have a bunch of arrays like y(i) that I want to set up in this manner, so using auxiliary variables for the real and imaginary parts of each of these arrays would get very messy very quickly. Thank...
  6. S

    Fortran Fortran 95 & complex numbers question

    Hi, I'm trying to compile a code (.f95, compiling using gfortran) in which I'm using a 'do' loop to set the values in a complex array; the following little piece is giving me trouble: double precision, dimension(n) :: x complex, dimension(n) :: y do i=1, n x(i) = ... end do do...
Back
Top