[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
Re: Integrating a Circular Shaped Loop in a Vector Field
From: |
astaton |
Subject: |
Re: Integrating a Circular Shaped Loop in a Vector Field |
Date: |
Fri, 13 Dec 2013 16:16:39 -0800 (PST) |
Sir..sorry for not quickly responding,
It is a line integral in the shape of a circle circumference.
I found the below code snippet that uses the trapz function to numerically
integrate a vector:
x=0:pi/357:pi;
y=??????
area=pi/357*trapz(y);
The problem is I do not have a function to integrate..per say. It is a
vector field of 3 dimensions with only values and no function.
I suppose I could simplify and only integrate the 'z' component? Maybe
B_field= |Z|*sin (theta)? That creates another problem because I still need
to vary the circle radius?
Any help is still greatly appreciated.
-AS
--
View this message in context:
http://octave.1599824.n4.nabble.com/Integrating-a-Circular-Shaped-Loop-in-a-Vector-Field-tp4660038p4660058.html
Sent from the Octave - General mailing list archive at Nabble.com.