How to calculate the max and Min Values For 24.4±0.015?

How to calculate the max and Min Values For 24.4±0.015? - Messages

#1 Posted: 7/29/2012 2:15:22 AM
Mohan

Mohan

0 likes in 5 posts.

Group: User

I have a data : 24.4±0.015
I want to find out the maximum without having to write a code.
How is it possible?
#2 Posted: 7/29/2012 4:09:08 AM
Fridel Selitsky

Fridel Selitsky

520 likes in 451 posts.

Group: User

For example, the so-
http://smath.info/live/?file=3857
#3 Posted: 7/29/2012 8:14:23 AM
jabadu

jabadu

1 likes in 37 posts.

Group: User

Hey, this would be a very elegant way for the analysis of tolerance chains.

But there would be a Problem:

How can you enter a value of e.g. 25 +0,1/-0,2 or 25 +0/-0,2 ??

Any ideas?

#4 Posted: 7/29/2012 11:16:07 AM
Davide Carpi

Davide Carpi

1415 likes in 2872 posts.

Group: Moderator

Hi,

Wrote

How can you enter a value of e.g. 25 +0,1/-0,2 or 25 +0/-0,2 ??



It's not difficult, just use the multiple values item (type "sys(" or click on the curly bracket in the "functions" right panel)

[LIVE width=259 height=195]http://smath.info/live/?file=3861[/LIVE]


regards,

w3b5urf3r
If you like my plugins please consider to support the program buying a license; for personal contributions to me: paypal.me/dcprojects
1 users liked this post
matteob8 7/30/2012 2:19:00 AM
#5 Posted: 7/30/2012 8:01:43 AM
jabadu

jabadu

1 likes in 37 posts.

Group: User

Thanks w3b5urf3r,

but then I have the same question as in the beginning of this thread: how do I get the min / max-value of this result?

example

(btw how did you enter the preview of the live file in your post?)
#6 Posted: 7/30/2012 8:34:43 AM
Davide Carpi

Davide Carpi

1415 likes in 2872 posts.

Group: Moderator

HI

Wrote

Thanks w3b5urf3r,

but then I have the same question as in the beginning of this thread: how do I get the min / max-value of this result?

example

(btw how did you enter the preview of the live file in your post?)


For the max() and min() values use the snippet sys2mat() in the attachment

To show the preview click on "Get link..." in the bottom-right corner of Live SMath and copy&paste in your post the 2nd link


best regards,

w3b5urf3r
sys2mat_example.sm (11 KiB) downloaded 67 time(s).
If you like my plugins please consider to support the program buying a license; for personal contributions to me: paypal.me/dcprojects
1 users liked this post
Fridel Selitsky 9/17/2012 3:32:00 AM
#7 Posted: 7/30/2012 10:02:06 AM
jabadu

jabadu

1 likes in 37 posts.

Group: User

Great - but one problem:

I get an error message "mat()-function is not defined" on every term below the line tc:= sys2mat(tc)

I use Smath 0.95 build 4594 on linux (same also on version 0.94 on linux).

#8 Posted: 7/30/2012 11:37:16 AM
Radovan Omorjan

Radovan Omorjan

325 likes in 2052 posts.

Group: Moderator

Hello,

Here is a screenshot from Ubuntu 12.04
No errors reported.

Regards,
Radovan

sys2mat-ubuntu.png
When Sisyphus climbed to the top of a hill, they said: "Wrong boulder!"
#9 Posted: 7/31/2012 6:04:37 AM
jabadu

jabadu

1 likes in 37 posts.

Group: User

Hmmm - this looks like it's my computer (running on the older ubuntu 8.04 (server version)) that have this problem. Update is scheduled, let's see how it changes.

Another question: Does SMath have something like a median-Funktion (= find the value between two given numbers)? Because the usual production process tries to work in the middle of the tolerance field this value could also be interesting to know in a tolerance chain.

Btw, why isn't it possible to transcode a system into a matrix with a build-in function? Or enhance the min/max/lenght/... function to work also with a system and not only with a matrix/vector? Is this not a common problem?



#10 Posted: 7/31/2012 7:44:39 AM
Radovan Omorjan

Radovan Omorjan

325 likes in 2052 posts.

Group: Moderator

Hello,
Wrote

Hmmm - this looks like it's my computer (running on the older ubuntu 8.04 (server version)) that have this problem. Update is scheduled, let's see how it changes.


Try this SMath DEB packages. During the installation, missing dependencies will be reported, if any.

Regards,
Radovan
When Sisyphus climbed to the top of a hill, they said: "Wrong boulder!"
#11 Posted: 7/31/2012 8:02:45 AM
Davide Carpi

Davide Carpi

1415 likes in 2872 posts.

Group: Moderator

Hi

Wrote

Another question: Does SMath have something like a median-Funktion (= find the value between two given numbers)? Because the usual production process tries to work in the middle of the tolerance field this value could also be interesting to know in a tolerance chain.



You can try with linterp() or building a function like [MATH]med(A;A+/2[/MATH]

Wrote

Btw, why isn't it possible to transcode a system into a matrix with a build-in function? Or enhance the min/max/lenght/... function to work also with a system and not only with a matrix/vector? Is this not a common problem?



I don't know, it's not yet implemented but SMath is in continuous development and something can escape... I'm sure that in a future version there will be some improvements, specially if you report your Feature Requests... f.e. an improvement of max() and min() is requested from several users (max and min), and the support of systems is something that should be included but it's not reported


regards,

w3b5urf3r




If you like my plugins please consider to support the program buying a license; for personal contributions to me: paypal.me/dcprojects
#12 Posted: 7/31/2012 9:17:08 AM
Basile

Basile

8 likes in 172 posts.

Group: User

Hello,

Why I am getting different answers?
(http://www.yourfilelink.com/get.php?fid=816752&dv=1)


Tolerance

Thanks,
Basile
#13 Posted: 7/31/2012 9:44:27 AM
Davide Carpi

Davide Carpi

1415 likes in 2872 posts.

Group: Moderator

Wrote

Hello,

Why I am getting different answers?
(http://www.yourfilelink.com/get.php?fid=816752&dv=1)


Tolerance

Thanks,
Basile



yourfilelink.com report: "Incorrect linking code. Please try again."

can't you attach the file on your post?

w3b5urf3r
If you like my plugins please consider to support the program buying a license; for personal contributions to me: paypal.me/dcprojects
#14 Posted: 7/31/2012 10:50:24 AM
Basile

Basile

8 likes in 172 posts.

Group: User

Here should be...
SMath1.JPG
#15 Posted: 7/31/2012 12:14:00 PM
Davide Carpi

Davide Carpi

1415 likes in 2872 posts.

Group: Moderator

Wrote

Here should be...



Hi,

it's the optimization in the definition of [MATH]R[/MATH], [MATH]R,eq[/MATH] and [MATH]R,e[/MATH] (see optimization of coloured equations in the attachment)


regards,

w3b5urf3r
sys.sm (13 KiB) downloaded 37 time(s).
If you like my plugins please consider to support the program buying a license; for personal contributions to me: paypal.me/dcprojects
#16 Posted: 7/31/2012 12:19:38 PM
Radovan Omorjan

Radovan Omorjan

325 likes in 2052 posts.

Group: Moderator

Hello,

Pay attention how sys() is working. In this simple example, every element from both sys() are combined with each other:

[MATH=eng]sys(1,20,2,1)+sys(50,300,2,1)=sys(51,70,301,320,4,1)[/MATH]

Sometimes it behaves differently, it depends on optimization applied.

Optimization numeric:
[MATH=eng]sys(1,20,2,1)+sys(1,20,2,1)=sys(2,21,21,40,4,1)[/MATH]

Optimization symbolic:
[MATH=eng]sys(1,20,2,1)+sys(1,20,2,1)=2*sys(1,20,2,1)[/MATH]

Actually: [MATH=eng]2*sys(1,20,2,1)=sys(2,40,2,1)[/MATH]

To be honest, because sys() in the calculations can sometimes be quite confusing, my advice is to avoid it in calculations. Actually, I did not figure out yet where the sys() environment is the most useful for using - excluding plots.

Regards,
Radovan
When Sisyphus climbed to the top of a hill, they said: "Wrong boulder!"
#17 Posted: 7/31/2012 12:42:21 PM
Basile

Basile

8 likes in 172 posts.

Group: User

Thank you both for your replies.
But how somebody will know a priori to leave the default or change the optimization?

Thanks,
Basile
#18 Posted: 8/1/2012 11:57:54 AM
jabadu

jabadu

1 likes in 37 posts.

Group: User

Hello w3b5urf3r,

I found the reason why your snippets don't work on my machine. Change the decimal symbol to comma and the arguments separator to semicolon and you get the same errors. With decimal symbol "period" and argument separator "comma" everything is fine.

Haven't tested if this is a bug or a feature...

Because Andrey is improving the min/max-function in near future these snippets won't be needed any more (probably/hopefully)

greetings
jabadu
#19 Posted: 8/1/2012 9:26:17 PM
Davide Carpi

Davide Carpi

1415 likes in 2872 posts.

Group: Moderator

Wrote

Hello w3b5urf3r,

I found the reason why your snippets don't work on my machine. Change the decimal symbol to comma and the arguments separator to semicolon and you get the same errors. With decimal symbol "period" and argument separator "comma" everything is fine.

Haven't tested if this is a bug or a feature...

Because Andrey is improving the min/max-function in near future these snippets won't be needed any more (probably/hopefully)

greetings
jabadu


Thank you very much...


seem it's an issue (BUG?) of the built-in functions [MATH]str2num(#)[/MATH] and [MATH]num2str(#)[/MATH] that have different behavior changing interface settings (see the attachments)


(probably the wrong behavior is in [MATH]num2str(#)[/MATH] but I'm not sure)


regards,

w3b5urf3r
num2str_str2num_bug.sm (5 KiB) downloaded 38 time(s).
If you like my plugins please consider to support the program buying a license; for personal contributions to me: paypal.me/dcprojects
#20 Posted: 8/2/2012 2:16:08 PM
Andrey Ivashov

Andrey Ivashov

2269 likes in 3729 posts.

Group: Super Administrator

Thank you! Bug of str2num function fixed.

Regards.
1 users liked this post
Davide Carpi 8/2/2012 4:23:00 PM
  • New Posts New Posts
  • No New Posts No New Posts