Loop Definition and 1000 Threads
-
C: Simple for loop is not working
C: Simple "for" loop is not working Homework Statement I'm taking an online course (yay lynda!) in C/C++, and I am trying to replicate a course example that prints "Hello, World!" five times, using a simple "for" loop. Homework Equations for(int i = 1; i <= 5; ++i){...} The Attempt at a...- mbrmbrg
- Thread
- Loop
- Replies: 9
- Forum: Engineering and Comp Sci Homework Help
-
B
Force on triangular current loop: line integrals
Homework Statement http://pokit.org/get/img/65e8ba92c1d00bf7fc8be2b178757ed8.jpg If a=5b, and I1 and I2 are known, find the force on the triangular loop. Homework Equations The Attempt at a Solution For start, the field from the infinitely long wire is : \vec B=\large -\frac{\mu _{0}...- Bassalisk
- Thread
- Current Current loop Force Integrals Line Line integrals Loop
- Replies: 2
- Forum: Introductory Physics Homework Help
-
E
Why Does the Open Loop Transfer Function Include H(s)?
In many books i saw that open loop transfer function is given by KG(s)H(s) , where G(s) is forward path gain and H(s) is the feedback gain. But according to the definition of open loop it does not contain feedback , then why there is a term of H(s) ? reference url...- erece
- Thread
- Function Loop Transfer function
- Replies: 1
- Forum: Electrical Engineering
-
W
Find the Total Current in a Single Loop Circuit
Homework Statement Find the current flowing through the circuit. http://wildedge.zxq.net/IMG.jpg Homework Equations Amps=Total Voltage / Total ResistanceThe Attempt at a Solution (20 + 12 + 12 + 3) / (10 + 5 + 30 + 40 + 20 + 15)=0.39A I'm almost certain that this is wrong. I don't even know...- Walley1
- Thread
- Circuit Current Loop
- Replies: 2
- Forum: Introductory Physics Homework Help
-
C
Help simple c program with loop, not running through each integer.
Homework Statement I want to create a program that prints the sum of integers k for k(1-20) ie, k sum 1 1 2 3 3 6 4 10 5 . 6 . . . . . . 20 . in that format Homework Equations The Attempt at a Solution #include <stdio.h> int...- charmedbeauty
- Thread
- Integer Loop Program Running
- Replies: 3
- Forum: Engineering and Comp Sci Homework Help
-
N
Calculating Induced EMF for a Changing Magnetic Field Loop
1. A rectangular wire loop (length 60 cm, width 40 cm) lies completely within a perpendicular and uniform magnetic field of magnitude of 0.5 T. If the length of the loop starts increasing at a rate of 20 mm/s at time t = 0, while the width is decreasing at the same rate, what is the magnitude...- nickmanc86
- Thread
- Emf Field Induced Induced emf Loop Magnetic Magnetic field
- Replies: 13
- Forum: Introductory Physics Homework Help
-
T
Relation between open loop and unity feedback close loop response
hi! can someone please help me with this problem...i have to match the open loop respone to the close loop unity feedback system of a control system. what is the relation between the two? thanx in advance- tina_singh
- Thread
- Feedback Loop Relation Response Unity
- Replies: 3
- Forum: Engineering and Comp Sci Homework Help
-
T
Fortran FORTRAN 90 Unexpected Statement Function Statement in Nested Do Loop
In the following code, highlighted in bold, I am using a nested DO loop to create a running sum of the yearly emissions ("emissions") read out of histem.txt, to create a cumulative emissions curve. The code generates an "Unexpected STATEMENT FUNCTION statement for sum in cem(i) = sum...- tch2
- Thread
- Fortran Function Loop
- Replies: 4
- Forum: Programming and Computer Science
-
T
C/C++ [C++] Declaring an array within a loop
The following code block is in C++ Everything is inside the first for loop. for( int i=0; i<=2; i++) { int a[3]={0}; for(int j=0; j<3; j++) a[i]=j; for( int i=0; i<=2; i++) cout<<a[i]; cout<<endl; } basically I am trying to get the screen to output...- torquerotates
- Thread
- Array Loop
- Replies: 2
- Forum: Programming and Computer Science
-
O
Negative feedback - Open loop gain question
This is my first post here. I'm currently learning about Negative feedback. Normally, When we want to know the open loop gain, we rewrite circuit(a) to circuit(b). My question is why do RE1,RF,RE2 from circuit(a) turn into what we see circuit(b)? what is a theory behind this? In...- okami11408
- Thread
- Feedback Gain Loop Negative
- Replies: 2
- Forum: Electrical Engineering
-
I
Hand rule used to find the magnetic field in a single loop wire
what rule hand rule shall be use in determining the direction of magnetic field in a single circular loop..pls. help me- imeclee
- Thread
- Field hand Loop Magnetic Magnetic field Wire
- Replies: 1
- Forum: Electromagnetism
-
J
Repeat the loop for a few intervals
I am trying to find the three roots from x=0 to x=2∏ for this equation: x*Sin[x] + 1.5 x - 3. I want to divide the graph into intervals of say from x=1.0 to x=2.0 as one interval and so on and so forth. How do I go about inserting that code into my existing codes? I am using the bisection method...- jiayingsim123
- Thread
- intervals Loop
- Replies: 1
- Forum: MATLAB, Maple, Mathematica, LaTeX
-
S
Can Green's Theorem Simplify Calculations of Magnetic Force in Uniform Fields?
Homework Statement Prove that, in a uniform magnetic field, the net force on a current loop carrying current I is zero.Homework Equations Green's theorem, and magnetic force equationThe Attempt at a Solution My main question is whether I can use Green's theorem to prove this result... it seems...- schaefera
- Thread
- Current Current loop Force Loop
- Replies: 4
- Forum: Introductory Physics Homework Help
-
M
Mathematica Mathematica: Problem with For loop increments
I'm having a recurring problem in mathematica when I try and introduce a simple for loop. For instance, I have the code shown below. It should increment my var value, and calculate a value of 'initial' for each 'var' value. These should then be recorded under the name RMPvalue[var] so I can...- musicgirl
- Thread
- Loop Mathematica
- Replies: 2
- Forum: MATLAB, Maple, Mathematica, LaTeX
-
B
EMF induced in solenoid by current in a loop.
Homework Statement A square loop with side-length a is positioned at the centre of a long thin solenoid, which has radius r (with r>a), length l and N turns. The plane of the loop is perpendicular to the axis of the solenoid, find V_{emf} induced in the solenoid Homework Equations...- bobred
- Thread
- Current Emf Induced Loop Solenoid
- Replies: 2
- Forum: Introductory Physics Homework Help
-
Kirchhoff's Voltage Law - Closed Loop?
Homework Statement Determine VC for the network in Fig. 7.24 (left-hand image). Homework Equations Kirchhoff's Voltage Law: The algebraic sum of the potential rises and drops around a closed path (or closed loop) is zero. The Attempt at a Solution This is an example problem...- JJBladester
- Thread
- Closed Law Loop Voltage
- Replies: 5
- Forum: Introductory Physics Homework Help
-
A
Compression force in current loop in magnetic field
Homework Statement Please check the enclosed figure. Find the force of compression in the wire loop. Magnetic field B is directed into the page and current i is flowing anti-clockwise. The radius of the wire loop is 'a'. Homework Equations \vec{F}=i\vec{l}\times\vec{B} The...- amal
- Thread
- Compression Current Current loop Field Force Loop Magnetic Magnetic field
- Replies: 3
- Forum: Introductory Physics Homework Help
-
P
Chiller Water Loop Contamination
Hi Its an existing industrial problem. There is a chiller system and two separate Water Circulation loops are there for water flow. First: Piping of the Chiller ( Made of Copper), then Mild Steel Piping upto the storage vessel and the to plate heat exchanger (PHE). Second: Water...- pradeepbarola
- Thread
- Chiller Loop Water
- Replies: 5
- Forum: General Engineering
-
D
Trying to understand ground loop in a car
I have an mp3 player in my car and i think it is having a ground loop issue. Whenever I plug it into my cig. lighter, I could hear a whining noise. The whining noise's pitch is proportional to the engine's RPM. I'm trying to fix and understand the problem because my background is electrical...- david90
- Thread
- Car Ground Loop
- Replies: 4
- Forum: Electrical Engineering
-
Finding quotient using while loop
Suppose that the number ##\pi## is divided by 2. The resulting quotient is divided by 2 again. This process is continued till the current quotient is less than or equal to 0.01. What is the largest quotient that is greater than 0.01? Here is my attempt: r = 1; quo = 1; while (quo > 0.01)...- DryRun
- Thread
- Loop quotient
- Replies: 7
- Forum: MATLAB, Maple, Mathematica, LaTeX
-
H
Designing a closed loop fluid system
Homework Statement I'm doing a project right now which deals with designing a closed loop recirculating system using water to cool multiple components. However, this post will only deal with the fluids portion. Below is the diagram of a very simplified system. Note that the areas marked red...- hydronicengr
- Thread
- Closed Designing Fluid Loop System
- Replies: 3
- Forum: Engineering and Comp Sci Homework Help
-
Z
Vector displacement around a closed loop
My book says that the total vector displacement around a closed loop is zero. Is this a general thing for every type of closed loop? If so, should this be obvious?- zezima1
- Thread
- Closed Displacement Loop Vector
- Replies: 3
- Forum: Calculus and Beyond Homework Help
-
C
Ziegler-Nichols method and closed loop characteristic equations.
Hi Guys, Attached is a problem from an old exam for a Process Control and Instrumentation unit. I have tried everything I know (which isn't much, it's not the main assessable portion of the unit). Other questions similar involve giving us either the characteristic closed loop equation...- CalebP
- Thread
- Characteristic Closed Loop Method
- Replies: 4
- Forum: Engineering and Comp Sci Homework Help
-
M
Assembly Language: How to make a loop skip the first line?
Hello, so i have a problem with my assembly code. I want to clear the screen of the DOS and display the string input in the first line. I decided to make a loop that will run 2000 times and fill the space with [20H, which is the ascii for space bar] however, It clears out my message as well and...- mimzy
- Thread
- Assembly Assembly language Language Line Loop
- Replies: 7
- Forum: Programming and Computer Science
-
R
Emf of a Closed Loop of Wire In a Magnetic Field
]Homework Statement A closed loop of wire 7.2 x10^{}-3 m^{}2 is placed so that it is at an angle of 60degrees to a uniform magnetic field. The flux density is changing at 0.1 T/s. The emf, in V, induced in the loop of wire is A) 3.6x10^{}-4 b)3.6x10^{}-2 6.9 Homework Equations emf...- rocketgirl93
- Thread
- Closed Emf Field Loop Magnetic Magnetic field Wire
- Replies: 20
- Forum: Introductory Physics Homework Help
-
5
Magnetic field lines in a current carrying circular loop
I wanted to ask that do each point of the current-carrying circular loop would create a magnetic field and hence the magnetic field lines? And if yes wouldn't the field lines produced by each point of the loop would intersect each other? I read somewhere that magnetic field lines never...- 55sparsh
- Thread
- Circular Circular loop Current Field Field lines Lines Loop Magnetic Magnetic field Magnetic field lines
- Replies: 22
- Forum: Electromagnetism
-
N
Explaination of Quantum Loop Gravity?
Can anyone here explain to me how does quantum loop gravity works?- Neutrino98
- Thread
- Gravity Loop Quantum
- Replies: 4
- Forum: Beyond the Standard Models
-
D
Nested if statement within a do-while loop
I don't understand why this would work, shouldn't it be "while(x)" because we don't want to repeat the loop? int main(void) { int x=0; do { printf("Enter an amount:\n"); scanf("%lf", &amount); if (amount < 100) x=1; else printf("Invalid"); }while(!x); return 0; }- dudforreal
- Thread
- If statement Loop
- Replies: 18
- Forum: Programming and Computer Science
-
M
MATLAB My Matlab for loop wont output the matrix I need
I'm somewhat new to Matlab and am having issues with a nested "for" and "if" loop. My code is below. This code is combining a binary signal with a cyclic one. I'm trying to create a matrix with the amplitude condition in the first column and in the second column I want the sum of the number of...- mcquaya
- Thread
- Loop Matlab Matrix Output
- Replies: 3
- Forum: MATLAB, Maple, Mathematica, LaTeX
-
K
Pyhton data's structural size and loop efficiency
While programming to find the largest prime factor for a composite number i came across a problem that if the number taken as input exceeds a certain limit, the loop time turns out to be a very long one and some times even resembling the time taken by an infinite loop.The method used for finding...- Kartik.
- Thread
- Efficiency Loop Structural
- Replies: 5
- Forum: Programming and Computer Science
-
M
MATLAB Plotting Matrix in Matlab Loop - Mathias
Hi, I have a matrix for instance as follow: A=[0.087 11.43 17.14 22.86 28.57 34.29 40.00 45.72 51.43 57.15 0.174 5.671 8.506 11.34 14.17 17.01 19.84 22.68 25.52 28.35 0.261 3.732 5.598 7.464 9.330 11.19 13.06 14.92 16.79 18.66 0.349 2.747...- mathia
- Thread
- Loop Matlab Plot
- Replies: 2
- Forum: MATLAB, Maple, Mathematica, LaTeX
-
A
MATLAB Matlab function errors while using loop
Hi, Please assist, I write this MATLAB function and receive the error below function f=myfunn(z,x,K,L1,L2,phi) for c=1:3 f=z(c)-(x(2,c).*K(c).*L1)-(x(1,c).*phi(2,c).*L2)./phi(1,c); end function f=myfunn(z,x,K,L1,L2,phi) | Error: Function definitions are not permitted in...- adeeyo
- Thread
- Errors Function Loop Matlab
- Replies: 1
- Forum: MATLAB, Maple, Mathematica, LaTeX
-
S
Calculating Minimum Speed at Top of Vertical Loop
Homework Statement A 330 kg roller coaster car sits on a horizontal track. Ahead of it is a vertical loop with radius of 6.85 m. The car is given an initial speed of 23.4 m/s and the car successfully traverses the loop. What is the maximum amount of energy taken away from the car by friction...- SamLing2000
- Thread
- Cart Loop Vertical
- Replies: 2
- Forum: Introductory Physics Homework Help
-
S
Fortran Fortran: inner loop dependence on outer loop
Hello, I want to write an inner loop which takes values based on the variable values of the outer loop. For outer loop, m=1, Nmax and for inner loop, I want n to take values from 1 to Nmax-m. But I am not sure if I can directly specify n = 1, Nmax-m. Also I want to use Nmax-m value for one of...- svartak
- Thread
- Fortran Loop
- Replies: 1
- Forum: Programming and Computer Science
-
N
Mathematica For loop in Mathematica doesn't work
I have problem with for loop in Mathematica given in the notebook attached. It evaluates only first step and then shows problems and the kernel could not stop running. What could be the problem? What is the correct syntax?- nikolafmf
- Thread
- Loop Mathematica Work
- Replies: 2
- Forum: MATLAB, Maple, Mathematica, LaTeX
-
S
Use of Biot-Savart Law for Square Loop
Hey, My question concerns the integration of the biot savart law of a differential magnetic field element to find the magnetic field at the center of a square loop. The question is part (c) (using info from (b)) of the image below: I want to check if what I did was right, but what I...- Sekonda
- Thread
- Biot-savart Biot-savart law Law Loop Square
- Replies: 2
- Forum: Introductory Physics Homework Help
-
Reformulation of Loop gravity in progress, comment?
The May 2012 "discrete symmetries" paper arXiv 1205.0733 signals a reformulation getting under way, I think. I'm curious to know how other people read this. There's been a pattern of the theory getting a major overhaul every 2 years or so. Many of us remember the 2008 reformulation, symbolized...- marcus
- Thread
- Gravity Loop
- Replies: 202
- Forum: Beyond the Standard Models
-
D
Circular motion-what is the radius of the loop de loop in meters
Homework Statement Snoopy is flying his vintage warplane in a "loop de loop" path being chased by the Red Baron. His instruments tell him the plane is level (at the bottom of the loop) and traveling at 180 km/hr. He is sitting on a set of bathroom scales that him he weighs four times what he...- dani123
- Thread
- Circular Loop Radius
- Replies: 51
- Forum: Introductory Physics Homework Help
-
D
Circular motion- radius of the plane's vertical loop
Homework Statement An 80-kg pilot flies a plane in a vertical loop. At the top of the loop, where the plane is completely upside-down for an instant, the pilot hangs freely in the seat and does not push against the seat belt. The airspeed indicator reads the 110 m/s. What is the radius of...- dani123
- Thread
- Circular Circular motion Loop Motion Radius Vertical
- Replies: 1
- Forum: Introductory Physics Homework Help
-
A
Why isn't the magnetic flux of a loop infinite?
If B~1/r2, then if we have a simple loop, B near the inner edge of the loop will be infinite (or close to it). Why then, would our flux not be infinite? I also get infinity if I take ∫ ∇ X A *da =∫B*da =∫(closed)A*dl Since A ~1/r and r~0 at the limit of our surface integral. I know I am...- Arijun
- Thread
- Flux Infinite Loop Magnetic Magnetic flux
- Replies: 8
- Forum: Electromagnetism
-
F
Magnetic Field square wire loop
Homework Statement A current I is flowing in a square wire loop of side a. Find the approximate value of the magnetic field intensity magnitude at the point P, which is near to one of the corners in the plane of the square at the same d distance from the near two sides! (d<<a). Homework...- faen
- Thread
- Field Loop Magnetic Magnetic field Square Wire
- Replies: 1
- Forum: Introductory Physics Homework Help
-
S
Stuck on a single loop circuit, two emfs and resistor
Homework Statement ε[1]=12v internal resistance[1]=.016Ω ε[2]=12v internal resistance[2]=.012Ω some unknown resistance 'R' in a stand alone resistor. a) what value of 'R' will make the terminal-to-terminal potential difference of one of the batteries zero? b) which battery would it be...- scrilla103
- Thread
- Circuit Loop Resistor Stuck
- Replies: 4
- Forum: Introductory Physics Homework Help
-
Y
What Speed Does the Roller Coaster Need to Maintain at the Top of a 14m Loop?
Homework Statement A roller coaster is moving past the top of a loop of diameter 14m. The Normal force (directed downwards) provided by the track at the top of the loop is equal to one-half the [B]weight[B] of the car. What is the speed of the coaster car at this point?Homework Equations Only...- yashi5166
- Thread
- Loop Roller Roller coaster
- Replies: 3
- Forum: Introductory Physics Homework Help
-
C
Magnetic moment of a current loop.
Hello, calculating the magnetic moment of a current loop is trivial, but I want to do it with the general formula \vec m = \frac{1}2 \int \vec r \times \vec J(\vec r) d^3\vec r The only thing which is stopping me is to find a good argument on why \frac{1}{2}\int \vec r d\vec r = \vec A where...- center o bass
- Thread
- Current Current loop Loop Magnetic Magnetic moment Moment
- Replies: 1
- Forum: Electromagnetism
-
E
Loop Integration in Spinor Language
Hi guys, i'm looking at one-loop calculations in terms of helicity spinor (basically a paper by Brandhuber, Travglini and others) language but i have no idea how to integrate them :) For instance \int FeynParam\int d^D L \frac{\langle a|L|b]^2}{(L^2-\Delta^2)^3} How would I do...- earth2
- Thread
- Integration Language Loop Spinor
- Replies: 7
- Forum: High Energy, Nuclear, Particle Physics
-
A
MATLAB Matlab for Loop of two changing variables
Hi, Please I need your assistance on this MATLAB code. I will really appreciate it. R=0.492; Pw=0.3708; for r=1:5; for teta=10:10:360...- adeeyo
- Thread
- Loop Matlab Variables
- Replies: 4
- Forum: MATLAB, Maple, Mathematica, LaTeX
-
O
Can an Enclosed Superconducting Loop Generate Electromotive Force?
Hi, If I take an enclosed superconducting wire loop, and apply a time dependent magnetic field in the space enclosed by the wire ( and therefore a time dependent magnetic flux) , this should induce electromotive force ( according to faraday's law). However any potential difference should not...- ofirg
- Thread
- Loop Superconducting
- Replies: 2
- Forum: Atomic and Condensed Matter
-
H
Basic magnetism on square loop question?
A square loop carrying a current I creates its own magnetic field. Describe the forces on each side of the square loop due to its own field. What is the torque it experiences? My question is this. I know we can use bio savart. But for bio savart, B=uoI/2piR, what R do I use? suppose i have a...- helpmeplz!
- Thread
- Loop Magnetism Square
- Replies: 1
- Forum: Electromagnetism
-
G
Flux through loop around solenoid
Homework Statement A simple loop of 5 cm radius encompasses the middle turns of a long coil. The coil has 2500-turns, is of length 1 m and radius 1 cm, and carries a current of 10 Amps. What is the magnetic flux through the single loop? Homework Equations B=μIN/L with L=1: B=μIN...- gboff21
- Thread
- Flux Loop Solenoid
- Replies: 4
- Forum: Introductory Physics Homework Help
-
B
Magnetic Flux Through Wire Loop
Homework Statement A wire loop with radius R is located a distance d from a long straight wire carrying a current I. Find the flux through the loop. Homework Equations B = \muI/(4\pi) Magnetic Field above wire \phi=B*da*cos\vartheta The Attempt at a Solution Somehow you have to...- bspride
- Thread
- Flux Loop Magnetic Magnetic flux Wire
- Replies: 3
- Forum: Introductory Physics Homework Help