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 Опубликовано: 29.07.2012 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 Опубликовано: 29.07.2012 04:09:08
Fridel Selitsky

Fridel Selitsky

520 сообщений из 451 понравились пользователям.

Группа: User

For example, the so-
http://smath.info/live/?file=3857
#3 Опубликовано: 29.07.2012 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 Опубликовано: 29.07.2012 11:16:07
Davide Carpi

Davide Carpi

1415 сообщений из 2872 понравились пользователям.

Группа: 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 30.07.2012 02:19:00
#5 Опубликовано: 30.07.2012 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 Опубликовано: 30.07.2012 08:34:43
Davide Carpi

Davide Carpi

1415 сообщений из 2872 понравились пользователям.

Группа: 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 КиБ) скачан 67 раз(а).
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 17.09.2012 03:32:00
#7 Опубликовано: 30.07.2012 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 Опубликовано: 30.07.2012 11:37:16
Radovan Omorjan

Radovan Omorjan

325 сообщений из 2052 понравились пользователям.

Группа: 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 Опубликовано: 31.07.2012 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 Опубликовано: 31.07.2012 07:44:39
Radovan Omorjan

Radovan Omorjan

325 сообщений из 2052 понравились пользователям.

Группа: 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 Опубликовано: 31.07.2012 08:02:45
Davide Carpi

Davide Carpi

1415 сообщений из 2872 понравились пользователям.

Группа: 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 Опубликовано: 31.07.2012 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 Опубликовано: 31.07.2012 09:44:27
Davide Carpi

Davide Carpi

1415 сообщений из 2872 понравились пользователям.

Группа: 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 Опубликовано: 31.07.2012 10:50:24
Basile

Basile

8 сообщений из 172 понравились пользователям.

Группа: User

Here should be...
SMath1.JPG
#15 Опубликовано: 31.07.2012 12:14:00
Davide Carpi

Davide Carpi

1415 сообщений из 2872 понравились пользователям.

Группа: 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 КиБ) скачан 37 раз(а).
If you like my plugins please consider to support the program buying a license; for personal contributions to me: paypal.me/dcprojects
#16 Опубликовано: 31.07.2012 12:19:38
Radovan Omorjan

Radovan Omorjan

325 сообщений из 2052 понравились пользователям.

Группа: 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 Опубликовано: 31.07.2012 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 Опубликовано: 01.08.2012 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 Опубликовано: 01.08.2012 21:26:17
Davide Carpi

Davide Carpi

1415 сообщений из 2872 понравились пользователям.

Группа: 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 КиБ) скачан 38 раз(а).
If you like my plugins please consider to support the program buying a license; for personal contributions to me: paypal.me/dcprojects
#20 Опубликовано: 02.08.2012 14:16:08
Andrey Ivashov

Andrey Ivashov

2269 сообщений из 3729 понравились пользователям.

Группа: Super Administrator

Thank you! Bug of str2num function fixed.

Regards.
1 пользователям понравился этот пост
Davide Carpi 02.08.2012 16:23:00
  • Новые сообщения Новые сообщения
  • Нет новых сообщений Нет новых сообщений