Recent content by vorcil

  1. V

    I NEED LIFE TIPS, Starting Medicine (finished physics)

    I'm not sure if I can explain my self elegantly but, basically I started studying Medicine. prior to this I finished my bachelor in physics / computer science & did a 1 year post grad course, Anyway, life happened and I don't really want anything to do with physics anymore. I'm finding...
  2. V

    What happened to the physics forums?

    What happened to the physics forums!? It looks much different to what it did a few years ago! It feels much more, user unfriendly. Is there a way to change it back?
  3. V

    Drinking a Glass of Wine While Studying

    http://xkcd.com/323/ Ballmer peak is real Drinking alcohol proven to help
  4. V

    From Physics to Medicine: The Journey of a Student's Career Decisions

    I took up physics because I wanted to do something with cancer, I didn't want to do anything on the chemistry/pharmaceutical side. I want to become an oncologist. After I finished my physics degree I did a semester of a Medical physics masters before switching over to medicine which I was...
  5. V

    From Physics to Medicine: The Journey of a Student's Career Decisions

    If you were to go back before you started your undergraduate study Would you change to medicine? I finished my physics degree but I'm now doing medicine
  6. V

    Fixing ValueError: Setting Array Element w/ Sequence in Python

    sorry about indentation, doesn't work when i copy / paste it for some reason
  7. V

    Fixing ValueError: Setting Array Element w/ Sequence in Python

    def makeFName(row,col,res): mod = row%res if(mod !=0): j=((row-mod)/res)+1 else: j=row/res mod=col%res1 if(mod !=0): k=((col-mod)/res)+1 else: k=col/res fname=numpy.zeros((1,j*k)) print fname xstart=1...
  8. V

    Fixing ValueError: Setting Array Element w/ Sequence in Python

    Homework Statement fname[i]='%05s - %05s . %05s - %05s' % (xstart,xend,ystart,yend) gives the error ValueError: setting an array element with a sequence. Basically I wanted to turn the statement '%05s - %05s . %05s - %05s' % ('50','50','50','50') to a string/name that goes into an array of...
  9. V

    How do I turn the number 120 to 00120 in python?

    Homework Statement I need to know how to change the format of a number in python for example if I have a integer variable, xstart=0. If i were to print(xstart) I want it to show 00000 and if I were to add 120 to xstart xstart+=120 then print it print(xstart) I want it to show 00120...
  10. V

    Understanding C Statements: sprintf fname for File Name Formatting

    Homework Statement What does this statement do? sprintf(fname,"%5.5i-%5.5i.%5.5i-%5.5i",1,*nx,1,*ny); from my knowledge of c, % is modulus, I don't know what the . is doing, according to wikipedia, it is element selection to reference I know that it is storing the name of a file in the...
  11. V

    Evaluating "iarray[i] < 0 && isigned" in C: Meaning Explained

    Homework Statement in this statement if (iarray[i] < 0 && *isigned) How do I evaluate that the code is in c isigned is either 0 or 1 does it mean that for each value in the array that is less than 0 AND for each value in the array that is less than isigned or does it mean...
  12. V

    Bragg diffraction / Solid state physics

    Are there alternative methods to solving the miller indices?
  13. V

    Bragg diffraction / Solid state physics

    How do i determine the lattice constant a? I know it's a cubic crystalline material and I know the diffraction angles but how do i figure a out!
  14. V

    Bragg diffraction / Solid state physics

    Homework Statement Homework Equations n\lambda = 2dsin(\theta) The Attempt at a Solution a) solving for d I get \frac{n*\lambda}{2*sin*(\theta)} = d substituting in the first value 50.85 to solve for d, with n=1 I get d= 1.754*10^-10m How do I solve the miller indices from the inter...
Back
Top