-
Notifications
You must be signed in to change notification settings - Fork 3
moment_of_force()
mkraska edited this page Aug 3, 2022
·
3 revisions
M: moment_of_force( [px, py], f, fname, rname)
Returns the moment of the "force" object about point p
-
M
moment about z (counterclockwise positive). -
[px, py]
point of reference, given as a numeric co-ordinate list -
f
object of type "force" -
fname
(algebraic expression) size of the force (usually taken from the "names" input field). -
rname
(algebraic expression) grid unit length
The force vector is computed from startpoint and endpoint. The vector is then normalized and multiplied by fname
. The radius vector is computed from the start point and the reference point and multiplied by rname
.
The moment is then computed as the cross product of both vectors.
Helper function for Feedback for Free Body Diagrams
In order to try code snippets in jsfiddle,
- copy the code from the wiki page to the clipboard
- follow the link for the JSXGraph version you want to try
- Replace the code in the HTML section (contents of
<p hidden id="init">
) with the content of the clipboard