Florida S2000 Owners Florida S2000 Enthusiasts

Mathcad programming question

Thread Tools
 
Old Feb 11, 2008 | 11:01 AM
  #11  
Brownsound's Avatar
15 Year Member
 
Joined: May 2007
Posts: 1,633
Likes: 0
From: Tampa
Default

I think you just need to press "enter".
Reply
Old Feb 11, 2008 | 11:08 AM
  #12  
wildcardtrd's Avatar
Thread Starter
Registered User
 
Joined: Nov 2004
Posts: 4,287
Likes: 1
From: UCF Knights!
Default

Originally Posted by PrimoGen,Feb 11 2008, 02:57 PM
you have your i's and j's transposed:

i := 1
j := 1
while (i ≤ m and j ≤ n) do
Find pivot in column j, starting in row i:
maxi := i
for k := i+1 to m do
if abs(A[k,j]) > abs(A[maxi,j]) then
maxi := k
end if
end for
if A[maxi,j] ≠ 0 then
swap rows i and maxi, but do not change the value of i
Now A[i,j] will contain the old value of A[maxi,j].
divide each entry in row i by A[i,j]
Now A[i,j] will have the value 1.
for u := i+1 to m do
subtract A[u,j] * row i from row u
Now A[u,j] will be 0, since A[u,j] - A[i,j] * A[u,j] = A[u,j] - 1 * A[u,j] = 0.
end for
i := i + 1
end if
j := j + 1
end while


with out the value of u, you cannot even start the matrix root search



jeez you noob.....






JK I dont even have the slightest clue of what I even pasted in. just some garbage from wikipeedonyou.
my i and j values are not transposed, they're my pivoting elements...I've already got my matrix diagonally dominant noob

and hitting enter only exits the currently selected section of code.

GAUSS(A,b) n ← rows(b) the given problem
s
−Ai,k
Ak,k

Ai, j← Ai, j + s⋅Ak,j
for j∈1..n
bi ← bi + s⋅bk
for i∈k+1.. n
for k∈1..n−1
xn
bn
An,n

sumi ← 0
sumi ← sumi + Ai, j⋅xj
for j∈n..i+1
xi
bi − sumi
Ai,i

for i∈n−1.. 1
x


wow, copy paste from mathcad doesnt translate into html very well...oh well.
Reply
Old Feb 11, 2008 | 11:14 AM
  #13  
Bandiscoot's Avatar
 
Joined: Jan 2006
Posts: 14,485
Likes: 3
From: Ocala
Default

try xml ... or just a FORTRAN decoder


or my supa-bubble decoder ring!
Reply
Old Feb 11, 2008 | 12:47 PM
  #14  
captainbk's Avatar
20 Year Member
Photogenic
Photoriffic
 
Joined: Oct 2005
Posts: 7,279
Likes: 1
From: Bradenton, Florida
Default


Britney when she was still smart. She took her panties off and her brain was never the same.
Reply
Old Feb 11, 2008 | 12:49 PM
  #15  
Crimedog's Avatar
Registered User
 
Joined: Jul 2006
Posts: 820
Likes: 0
From: Florida
Default

Originally Posted by Bandiscoot,Feb 11 2008, 12:14 PM
or my supa-bubble decoder ring!
I think I found one of those in my cracker jack box!
Reply
Old Feb 11, 2008 | 01:05 PM
  #16  
Bandiscoot's Avatar
 
Joined: Jan 2006
Posts: 14,485
Likes: 3
From: Ocala
Default

Originally Posted by Crimedog,Feb 11 2008, 04:49 PM
I think I found one of those in my cracker jack box!
here's the one i have

Reply
Old Feb 11, 2008 | 01:09 PM
  #17  
Crimedog's Avatar
Registered User
 
Joined: Jul 2006
Posts: 820
Likes: 0
From: Florida
Default

Originally Posted by Bandiscoot,Feb 11 2008, 02:05 PM
here's the one i have

Nice!!!!!
Reply
Old Feb 11, 2008 | 03:35 PM
  #18  
timdonna1's Avatar
15 Year Member
 
Joined: Jun 2007
Posts: 1,016
Likes: 0
From: Ocala, FL
Default

Originally Posted by Bandiscoot,Feb 11 2008, 06:05 PM
here's the one i have

Wonder Twin Powers...ACTIVATE !!!!!!
Reply
Old Feb 11, 2008 | 04:04 PM
  #19  
Bandiscoot's Avatar
 
Joined: Jan 2006
Posts: 14,485
Likes: 3
From: Ocala
Default

Originally Posted by timdonna1,Feb 11 2008, 07:35 PM
Wonder Twin Powers...ACTIVATE !!!!!!
Reply
Old Feb 11, 2008 | 04:29 PM
  #20  
triman54's Avatar
Registered User
 
Joined: Jun 2007
Posts: 6,040
Likes: 0
From: Winter Springs, Fl.
Default

The answer is, "Klaatu barada nikto."
Reply



All times are GMT -8. The time now is 06:57 AM.