November 4th Flow Charts

November 4th Flow Charts - as exponential Stop Start SX = 0...

Info iconThis preview shows pages 1–3. Sign up to view the full content.

View Full Document Right Arrow Icon
Background image of page 1

Info iconThis preview has intentionally blurred sections. Sign up to view the full version.

View Full DocumentRight Arrow Icon
Start Open file as input 1 Input #1, N For I = 1 To N, Step 1 Input #1, X(I), Y(I) LnX(I) = Log(X(I)) LnY(I) = Log(Y(I)) Next I What type of graph is it? (Linear, Exponential or Power) Does G = Linear No Does G = Power No Yes Yes regress(X(), Y(), N, M, B, R) Output m, b, r and equation as linear Output m, b, r and equation as power regress(LnX(), LnY(), N, M, LnB, R) regress(X(), LnY(), N, M, LnB, R) Output m , b, r and equation
Background image of page 2
Background image of page 3
This is the end of the preview. Sign up to access the rest of the document.

Unformatted text preview: as exponential Stop Start SX = 0 SY = 0 SXY = 0 SX2 = 0 For X = 1 To N, Step 1 SX = SX + Xd(X) SY = SY + Yd(X) SXY = SXY + Xd(X) * Yd(X) SX2 = SX2 + Xd(X) ^ 2 SY2 = SY2 + Yd(X) ^ 2 Next X M = (N * SXY - SX * SY) / (N * SX2 - SX ^ 2) B = (SY - M * SX) / N F = (N * SXY) - (SX * SY) D = (N * SX2) - (SX) ^ 2 E = (N * SY2) - (SY) ^ 2 R = F / (Sqr(D) * Sqr(E)) Stop...
View Full Document

This note was uploaded on 09/18/2011 for the course ENGR 160 taught by Professor Sengupta during the Fall '07 term at Iowa State.

Page1 / 3

November 4th Flow Charts - as exponential Stop Start SX = 0...

This preview shows document pages 1 - 3. Sign up to view the full document.

View Full Document Right Arrow Icon
Ask a homework question - tutors are online