Welcome Guest! To enable all features please Login. New Registrations are disabled.

Notification

Icon
Error

Login


Options
Go to last post Go to first unread
Offline metiu  
#1 Posted : 09 April 2010 06:13:00(UTC)
metiu

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 Good

Best regards
Mateusz

Wanna join the discussion?! Login to your SMath Studio Forum forum account. New Registrations are disabled.

Offline Andrey Ivashov  
#2 Posted : 09 April 2010 06:25:52(UTC)
Andrey Ivashov


Rank: Administration

Groups: Developers, Registered, Knovel Developers, Administrators, Advanced Member
Joined: 11/07/2008(UTC)
Posts: 1,616
Man
Russian Federation

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.
Offline omorr  
#3 Posted : 09 April 2010 13:46:13(UTC)
omorr


Rank: Administration

Groups: Registered, Advanced Member
Joined: 23/06/2009(UTC)
Posts: 1,740
Man
Serbia

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←2
a2←5
a3←3
min(augment(a1;a2;a3))=2
or
a←mat(a1;a2;a3;3;1)
min(a)=2
Here 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(Cool;min(c)))=-6
As 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))))=-6
or
min(stack(min(el(d;1;1));min(el(d;2;1))))=-6

I 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!"
Users browsing this topic
Guest
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.