Florida S2000 Owners Florida S2000 Enthusiasts

Mathcad programming question

Thread Tools
 
Old Feb 11, 2008 | 08:59 AM
  #1  
wildcardtrd's Avatar
Thread Starter
Registered User
 
Joined: Nov 2004
Posts: 4,287
Likes: 1
From: UCF Knights!
Default Mathcad programming question

I'm trying to write the code for the Gauss Elimination method of finding complex roots in matrices, but I can't figure out how to "add a line" at the end of my coding sequence...everytime I try it adds a new vertical line to the end of the last line I coded, instead of dropping down to the next line on existing vertical line of code.
Reply
Old Feb 11, 2008 | 09:33 AM
  #2  
Bandiscoot's Avatar
 
Joined: Jan 2006
Posts: 14,485
Likes: 3
From: Ocala
Default

i'll forward this on to my buddy ... maybe he can help
Reply
Old Feb 11, 2008 | 09:36 AM
  #3  
Willie Gee's Avatar
Registered User
 
Joined: Jan 2004
Posts: 13,826
Likes: 0
From: New Slowmyrna Beach
Default

i'm having the exact same problem!


[/sarcasm]
Reply
Old Feb 11, 2008 | 09:43 AM
  #4  
Sub-Zero's Avatar
Registered User
 
Joined: Nov 2002
Posts: 6,896
Likes: 0
Default

If you ask the question in english I might be able to help!!
Reply
Old Feb 11, 2008 | 09:43 AM
  #5  
speedworksracing's Avatar
Registered User
 
Joined: May 2007
Posts: 5,490
Likes: 0
From: Orlando Area FTW!!!
Default

Originally Posted by Willie Gee,Feb 11 2008, 01:36 PM
i'm having the exact same problem!


[/sarcasm]
hahah
Reply
Old Feb 11, 2008 | 09:59 AM
  #6  
wildcardtrd's Avatar
Thread Starter
Registered User
 
Joined: Nov 2004
Posts: 4,287
Likes: 1
From: UCF Knights!
Default

nmind, I got it. You have to highlight the entire block of code that you want to continue on with, hit add line, which will erase everything you've done but add the line where you want it, then ctrl-z undo it, which puts everything back but has the selector bracket now around the work you want to continue, then click add line again.


PITA modeling software
Reply
Old Feb 11, 2008 | 10:01 AM
  #7  
Bandiscoot's Avatar
 
Joined: Jan 2006
Posts: 14,485
Likes: 3
From: Ocala
Default

that's what i was gonna guess to do ... but obviously you've got it handled.


jk
Reply

Trending Topics

Old Feb 11, 2008 | 10:03 AM
  #8  
wildcardtrd's Avatar
Thread Starter
Registered User
 
Joined: Nov 2004
Posts: 4,287
Likes: 1
From: UCF Knights!
Default

Originally Posted by jcarlton,Feb 11 2008, 01:43 PM
If you ask the question in english I might be able to help!!
That was as close to english as I could make it
Reply
Old Feb 11, 2008 | 10:54 AM
  #9  
PrimoGen's Avatar
Registered User
 
Joined: Jun 2004
Posts: 16,759
Likes: 1
From: Sun★Works
Default

I am one PhD away from being able to read this thread.
Reply
Old Feb 11, 2008 | 10:57 AM
  #10  
PrimoGen's Avatar
Registered User
 
Joined: Jun 2004
Posts: 16,759
Likes: 1
From: Sun★Works
Default

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.
Reply



All times are GMT -8. The time now is 06:35 PM.