Rank: Newbie
Groups: Registered
Joined: 09/04/2010(UTC) Posts: 1 Location: Poland
|
Hello 1) In some countings I have to find max or min value from, for example, 3 defined earlier definitions. After using max (min) function SMath is not showing results, but information that max (min) function has been not defined. What's even stranger - when I put my cursor over the definition of max (min) function it shows me inserted values. Some screen shots (I'm using the Polish version, but on the second screen information is saying that function is not definied): Is it bug or maybe I'm doing something wrong? 2) Is it possible to change default font? SMath is the only alternative for the MathCAD - thank You a lot for creating and developing it. Keep up the good work Best regards Mateusz
|
|
|
|
Rank: Administration Groups: Developers, Registered, Knovel Developers, Administrators, Advanced Member Joined: 11/07/2008(UTC) Posts: 1,616 Was thanked: 1978 time(s) in 666 post(s)
|
Hello, Mateusz. metiu wrote:Is it bug or maybe I'm doing something wrong? Min and Max functions are defined only to work with one argument - matrix or vector. They can't accept any different count and types of arguments. metiu wrote:Is it possible to change default font? No, it is impossible for now. Thank you for using SMath Studio. Best regards, Andrey Ivashov.
|
|
|
|
Rank: Administration Groups: Registered, Advanced Member Joined: 23/06/2009(UTC) Posts: 1,740 Was thanked: 318 time(s) in 268 post(s)
|
Hello, Mateusz This restriction of "min" and "max" functions is not such a problem. Here is some possibility a1←2a2←5a3←3min(augment(a1;a2;a3))=2or a←mat(a1;a2;a3;3;1)min(a)=2Here is a bit more complex problem. Minimal element from two matrices? b←mat(3;-2;4;1;2;2)c←mat(3;4;1;-6;5;1;2;2;1;3;3)min(augment(min(;min(c)))=-6As the matrices have different numbers of rows and columns, you can not "augment" or "stack" them to make a single matrix. Let's try to make a single "blocked" matrix. d←mat(b;c;2;1)d=mat(mat(3;-2;4;1;2;2);mat(3;4;1;-6;5;1;2;2;1;3;3);2;1)This will not work min(d)=#Type conversion error! But there is a solution min(augment(min(el(d;1;1));min(el(d;2;1))))=-6or min(stack(min(el(d;1;1));min(el(d;2;1))))=-6I think it is not so complicated as it seems to be. Regards, Radovan |
When Sisyphus climbed to the top of a hill, they said: "Wrong boulder!" |
|
|
|
Forum Jump
You cannot post new topics in this forum.
You cannot reply to topics in this forum.
You cannot delete your posts in this forum.
You cannot edit your posts in this forum.
You cannot create polls in this forum.
You cannot vote in polls in this forum.