{[ promptMessage ]}

Bookmark it

{[ promptMessage ]}

November 4th Flow Charts

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

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

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

View Full Document
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
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

{[ snackBarMessage ]}