Tek-Tips is the largest IT community on the Internet today!

Members share and learn making Tek-Tips Forums the best source of peer-reviewed technical information on the Internet!

  • Congratulations cowski on being selected by the Eng-Tips community for having the most helpful posts in the forums last week. Way to Go!

Finite Difference - Solve Block Syntax

Status
Not open for further replies.

GPekmezi

Structural
Joined
Oct 11, 2002
Messages
3
Location
US
Hello and thanks for any help

1.
I am using the Finite Difference Method in Mathcad 13 to solve a differential equation. I have defined a range variable which goes from 1 to n, where n represents the number of dicretization points in the solution.

i:=1,2.. n

Is there any way I can keep the range variable in the solve block like this:

x+x[i-1]-x[i-1]=c

Or do I have to manually write each equation, replacing i with the appropriate number? This is what I had done before (my laptop crashed) and it worked perfectly. But if I want to change the value of n, or if I want to use any value of n greater than 10, this becomes an incredibly tedious task.

2.
The equation I am solving spans 4 pages horizontally. Is there any way to wrap it?
 
You can include an on error line to return zero (or whatever). The on error is on the programming toolbar.

Philip
 
Status
Not open for further replies.

Part and Inventory Search

Sponsor

Back
Top