help-octave
[Top][All Lists]
Advanced

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

Nonconforming Err


From: syberraith
Subject: Nonconforming Err
Date: Sat, 3 Dec 2011 17:58:07 -0800 (PST)

Why is is this failing to work?

n = 100000;
G_rpm = 12000;
X_rpm = 300;
Gr = 0.025;
Xr = 0.15;
Gw = 2 .* pi .* G_rpm ./ 60;
Xw = 2 .* pi .* X_rpm ./ 60;
p = 60 ./ G_rpm;
h = p ./ ( n - 1 );
g = h ./ 2;

function y = raw_vel( x )
global Gw;
y = sin( Gw .* x );
endfunction

t = linspace(0,p,n);
f = raw_vel( t );
s = sum(f(1:end) .* h)

--
View this message in context: 
http://octave.1599824.n4.nabble.com/Nonconforming-Err-tp4155804p4155804.html
Sent from the Octave - General mailing list archive at Nabble.com.


reply via email to

[Prev in Thread] Current Thread [Next in Thread]