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? - 消息

#1 已发布: 2012/7/29 02:15:22
Mohan

Mohan

0个赞,共5个帖子。

组: 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 已发布: 2012/7/29 04:09:08
Fridel Selitsky

Fridel Selitsky

520个赞,共451个帖子。

组: User

For example, the so-
http://smath.info/live/?file=3857
#3 已发布: 2012/7/29 08:14:23
jabadu

jabadu

1个赞,共37个帖子。

组: 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 已发布: 2012/7/29 11:16:07
Davide Carpi

Davide Carpi

1,443个赞,共2,936个帖子。

组: 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位用户喜欢此帖子
matteob8 2012/7/30 02:19:00
#5 已发布: 2012/7/30 08:01:43
jabadu

jabadu

1个赞,共37个帖子。

组: 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 已发布: 2012/7/30 08:34:43
Davide Carpi

Davide Carpi

1,443个赞,共2,936个帖子。

组: 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.4 KiB)已下载 1558 次。
If you like my plugins please consider to support the program buying a license; for personal contributions to me: paypal.me/dcprojects
1位用户喜欢此帖子
Fridel Selitsky 2012/9/17 03:32:00
#7 已发布: 2012/7/30 10:02:06
jabadu

jabadu

1个赞,共37个帖子。

组: 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 已发布: 2012/7/30 11:37:16
Radovan Omorjan

Radovan Omorjan

325个赞和1个踩,共2,052个帖子。

组: 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 已发布: 2012/7/31 06:04:37
jabadu

jabadu

1个赞,共37个帖子。

组: 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 已发布: 2012/7/31 07:44:39
Radovan Omorjan

Radovan Omorjan

325个赞和1个踩,共2,052个帖子。

组: 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 已发布: 2012/7/31 08:02:45
Davide Carpi

Davide Carpi

1,443个赞,共2,936个帖子。

组: 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 已发布: 2012/7/31 09:17:08
Basile

Basile

8个赞,共172个帖子。

组: User

Hello,

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


Tolerance

Thanks,
Basile
#13 已发布: 2012/7/31 09:44:27
Davide Carpi

Davide Carpi

1,443个赞,共2,936个帖子。

组: 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 已发布: 2012/7/31 10:50:24
Basile

Basile

8个赞,共172个帖子。

组: User

Here should be...
SMath1.JPG
#15 已发布: 2012/7/31 12:14:00
Davide Carpi

Davide Carpi

1,443个赞,共2,936个帖子。

组: 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.59 KiB)已下载 1479 次。
If you like my plugins please consider to support the program buying a license; for personal contributions to me: paypal.me/dcprojects
#16 已发布: 2012/7/31 12:19:38
Radovan Omorjan

Radovan Omorjan

325个赞和1个踩,共2,052个帖子。

组: 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 已发布: 2012/7/31 12:42:21
Basile

Basile

8个赞,共172个帖子。

组: 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 已发布: 2012/8/1 11:57:54
jabadu

jabadu

1个赞,共37个帖子。

组: 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 已发布: 2012/8/1 21:26:17
Davide Carpi

Davide Carpi

1,443个赞,共2,936个帖子。

组: 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.32 KiB)已下载 1458 次。
If you like my plugins please consider to support the program buying a license; for personal contributions to me: paypal.me/dcprojects
#20 已发布: 2012/8/2 14:16:08
Andrey Ivashov

Andrey Ivashov

2,344个赞,共4,057个帖子。

组: Super Administrator

Thank you! Bug of str2num function fixed.

Regards.
1位用户喜欢此帖子
Davide Carpi 2012/8/2 16:23:00
  • 有新帖
  • 无新帖