MATC usage - minimum between two parameters

Numerical methods and mathematical models of Elmer
Post Reply
ftrillaudp
Posts: 42
Joined: 23 May 2012, 05:26
Antispam: Yes

MATC usage - minimum between two parameters

Post by ftrillaudp »

Dear all,

A simple question, I would like to define a parameter as the minimum of two other parameters already defined. I have tried different things. I give my last try without success:

$ a1 = 1
$ a2 = 2
$ a3 = Real MATC "min(a1 a2)"

What would be the correct way to get the minimum?

Best,

Frederic
raback
Site Admin
Posts: 4812
Joined: 22 Aug 2009, 11:57
Antispam: Yes
Location: Espoo, Finland
Contact:

Re: MATC usage - minimum between two parameters

Post by raback »

$a3=min(a1 a2)

Tip: "matc" can be launched also from command line and there you can try things out. (use ^Z is needed for exit)
Post Reply