From octave-sources-request at bevo dot che dot wisc dot edu Mon Jan 27 14:20:23 2003 Subject: lbf2N.m From: Stefan Burger To: octave-sources at bevo dot che dot wisc dot edu Date: Mon, 27 Jan 2003 07:44:23 -0600 --------------Boundary-00=_CVKDIU1FYNHINCVG15M7 Content-Type: text/plain; charset="us-ascii" Content-Transfer-Encoding: quoted-printable --------------Boundary-00=_CVKDIU1FYNHINCVG15M7 Content-Type: text/plain; charset="us-ascii"; name="lbf2N.m" Content-Transfer-Encoding: 7bit Content-Disposition: attachment; filename="lbf2N.m" ## Copyright (C) 2003 Stefan Burger ## ## This file is part of Octave. ## ## Octave is free software; you can redistribute it and/or modify it ## under the terms of the GNU General Public License as published by the ## Free Software Foundation; either version 2, or (at your option) any ## later version. ## ## Octave is distributed in the hope that it will be useful, but WITHOUT ## ANY WARRANTY; without even the implied warranty of MERCHANTABILITY or ## FITNESS FOR A PARTICULAR PURPOSE. See the GNU General Public License ## for more details. ## ## You should have received a copy of the GNU General Public License ## along with Octave; see the file COPYING. If not, write to the Free ## Software Foundation, 59 Temple Place, Suite 330, Boston, MA 02111 USA. ## -*- texinfo -*- ## at deftypefn {Function File} {} lbf2N(@var{val}) ## Converts an value at var{val} in pound-force (lbf) to Newton (N). ## at end deftypefn ## Author: Stefan Burger ## Description: convert lbf to Newton function v = lbf2N (val) if (nargin < 1) val = 1; endif v = val * 4.5359237E-1 * 9.80665; %% multiply value with 0.45 kg/lb, %% and multiply with standard value for earth gravity, 9.81 N/kg, which %% is defined as 'exact' value for conversions, see NIST - www.nist.gov %% - of course, 'true' acceleration rates vary across the globe. endfunction --------------Boundary-00=_CVKDIU1FYNHINCVG15M7--