Skip to main content
1-Visitor
November 1, 2013
Question

Programming in Matchad

  • November 1, 2013
  • 2 replies
  • 4040 views

Hi!

I would like to program the following 20 steps (see the attached file) in Mathacad. It is an itteration process.

Is it easy to do it if you have the right programming skills or is it to big of a problem to tackle in mathcad?

Appreciate any help, thanks in advance!

2 replies

1-Visitor
November 1, 2013

All modern mathematics programs, Excel, Mathcad, and Matlab, have built-in facilities to solve problems like this without user programming. I suggest you read "Mathcad Solve Block" in the help files. A solve block simply requires that you provide an expression that could produce the result that you want, provided that some variable is changed. You close the solve block with Find(variable)= or Minerr(variable)=.

No programming required. See Excel's "Goal Seek" and "Solver" for similar functionality.

TTFN

Ermis761-VisitorAuthor
1-Visitor
November 3, 2013

Ok, Thanks a lot!

After a quick look att the help files i´m wondering how the solve block works. Could you see what is the problem in the attached file.

I´would like to solve x. There is a angle x who gives the right τxy.

/E

1-Visitor
November 4, 2013

I'm sorry, I don't see what you are attempting to do. What equation is satisfied when x is found? You have nothing in the expressions that depend on x.

N.B, there should be no := expressions within a solve block. The only thing that should be within the block are constraints, i.e., something like:

TTFN

19-Tanzanite
November 4, 2013

Is it easy to do it if you have the right programming skills or is it to big of a problem to tackle in mathcad?

Yes, it would be easy to do with the right skills. A lot easier than doing it in Excel, and no harder than doing it in another high level language such as Matlab. If you don't have the right skills though, well...

The key to doing most things in Mathcad that are a step beyond trivial is to write the worksheet in terms of functions. If you want to solve for angle, write your expressions as functions of angles.

As already pointed out though, unless there is something very unusual about the iterative process you can probably use the built in solvers to find your answer.