1. PF Contest - Win "Conquering the Physics GRE" book! Click Here to Enter
    Dismiss Notice
Dismiss Notice
Join Physics Forums Today!
The friendliest, high quality science and math community on the planet! Everyone who loves science is here!

Magnetic field representation in Octave

  1. Aug 14, 2015 #1
    1. The problem statement, all variables and given/known data
    I need to represent in Octave (using the quiver function) the magnetic field lines around a long wire which carries an electric current around the wire. The magnetic field of an infinitely long straight wire can be obtained by applying Ampere's law.

    2. Relevant equations
    The expression for the magnetic field is:

    3. The attempt at a solution
    I wrote a program in Octave and I obtained the folowing figure using the formula:

    I'm almost sure that these couldn't be magnetic field lines, because I read somewhere that they must be circular. Any help would be much appreciated
  2. jcsd
  3. Aug 15, 2015 #2

    Simon Bridge

    User Avatar
    Science Advisor
    Homework Helper

    Pay closer attention to the representation.
Know someone interested in this topic? Share this thread via Reddit, Google+, Twitter, or Facebook

Have something to add?
Draft saved Draft deleted