Recent content by physicsfun

  1. P

    Java Java recursion longest common subsequence

    can someone explain java recursion to me?
  2. P

    Direction of induced current - VERY basic

    Homework Statement A current loop with area A is placed in region II in the x-z plane, centered at the origin. (Below is a view looking down from y > 0.) If the magnitude of the current per unit length in each sheet is increased (the directions stay the same), the induced current in the loop...
  3. P

    Java Why is My Java Code Not Rotating an Array 90 Degrees to the Left?

    I am supposed to write code to rotate an array 90 degrees to the left... so my question is, why is this code not rotating my array 90 degrees to the left? thanks for any help! public static int[][] rotateLeft(int[][] source) { int[][] result = new int[source.length][source[0].length]...
  4. P

    Comp Sci Rotate Arrays in Java: Troubleshooting 90 Degree Left Rotation Code

    Homework Statement Write code to rotate an array... Homework Equations why is this code not rotating my array 90 degrees to the left? thanks SO much in advance! The Attempt at a Solution public static int[][] rotateLeft(int[][] source) { int[][] result = new...
  5. P

    When Does A Set Minus B Equal B Minus A?

    Homework Statement For what conditions on sets A and B does A-B = B-A hold? Homework Equations A - B = A n B^c B - A = B n A^c The Attempt at a Solution I know that A = B is the answer, but I just don't know where to start...please don't give me the whole proof, I want to figure...
  6. P

    How Is Electric Flux Calculated Using Gauss's Law for a Nonconducting Cylinder?

    I tried that and I keep getting the wrong answer, I converted sigma to lamba (charge per unit length) and used the relationship that E = lamba / (2*pi*epsilon*radius). Then I multiplied E by the surface area of the "container", 2*pi*radius*length... but this keeps yielding the wrong answer...
  7. P

    How Is Electric Flux Calculated Using Gauss's Law for a Nonconducting Cylinder?

    Nope, the question is asking for the flux through the sides of the barrel. Part (a) and (b) of the question asked for the flux through the top and the bottom of the barrel, to which I correctly answered zero.
  8. P

    How Is Electric Flux Calculated Using Gauss's Law for a Nonconducting Cylinder?

    As far as I can tell the relationship is pretty simple... Flux is simply the charged enclosed divided by espsilon... but obviously I'm not getting something! What aren't I understanding? Or is this particular relationship not applicable to this problem?
  9. P

    How Is Electric Flux Calculated Using Gauss's Law for a Nonconducting Cylinder?

    Homework Statement A long solid nonconducting cylinder has radius r = 0.65 meters. It has a uniform charge density of 3.7 C/m3. Consider a cylinderical container concentric with the charged cylinder, with radius R = 1.5 m, and length L = 2 m. Calculate the flux through the barrel of the...
Back
Top