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 Radnay  
#1 Posted : 23 April 2012 19:01:54(UTC)
Radnay

Rank: Newbie

Groups: Registered
Joined: 22/09/2010(UTC)
Posts: 9
Location: Hungary

Hello!

I have problem vith the units. I already have several smath file that I made with one of the previous versions. By recalculating these with the use of the latest version, there are a lot of mistakes, and it doesent works at all. Maybe because by me the new version makes strange simplifications by units. It cant add the proviously calculated "s*1" (secundum multiplied with one) and for example "s^1".

An other strange thing is that sometimes (when trigonometrics or roots are in the equation)

For example A:=equation

I got different results for: A= and equation=

If you can, please help me. Sorry for my bad english.

L.R.

Edited by moderator 17 May 2012 22:08:09(UTC)  | Reason: Not specified

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

Offline Andrey Ivashov  
#2 Posted : 23 April 2012 20:13:28(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)
Radnay, please send file(s) to me and I will check the reason of the errors you've mentioned.

Best regards.
Offline Radnay  
#3 Posted : 24 April 2012 11:20:24(UTC)
Radnay

Rank: Newbie

Groups: Registered
Joined: 22/09/2010(UTC)
Posts: 9
Location: Hungary

Hello!

I don't know, where to send it.
Maybe it will work if you can download the smath file from http://www.mfk.unideb.hu...zlo.radnay/smatherror.sm
and the pdf form from http://www.mfk.unideb.hu...o.radnay/smatherror.pdf.

Best Regards
Offline omorr  
#4 Posted : 24 April 2012 11:57:21(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,

I tried the *.sm file and this time Numeric and None optimization will fail complaining about unmatching units. Symbolic optimization will give the results.



If we assign the expression to the variable RES here, only the Symbolic optimization will give the result. Numeric and None will fail.

Regards,
Radovan
When Sisyphus climbed to the top of a hill, they said: "Wrong boulder!"
Offline Radnay  
#5 Posted : 24 April 2012 12:32:30(UTC)
Radnay

Rank: Newbie

Groups: Registered
Joined: 22/09/2010(UTC)
Posts: 9
Location: Hungary

Hi!

I have tried, what you say and it works in this case.

But, with the same settings an other one doesent works.

http://www.mfk.unideb.hu.../laszlo.radnay/error2.sm

The errors are on the 4. ,5. ,8. page. I cant understand it.

L.R.
Offline omorr  
#6 Posted : 24 April 2012 12:50:27(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,

I have no idea what has going on, sorry. This might be some kind of a bug.
For instance, this is an error from your file:



Do not even know what was the error about. What actually "1E" means?

Andrey is the only one who can give the right answer.

Regards,
Radovan
When Sisyphus climbed to the top of a hill, they said: "Wrong boulder!"
Offline Radnay  
#7 Posted : 24 April 2012 13:11:44(UTC)
Radnay

Rank: Newbie

Groups: Registered
Joined: 22/09/2010(UTC)
Posts: 9
Location: Hungary

Hi!

I'm glad that I could at least describe my problem.

This file worked properly half year ago, with the actual version.

I look forward for your help.

L.R.
Offline Radnay  
#8 Posted : 24 April 2012 14:37:50(UTC)
Radnay

Rank: Newbie

Groups: Registered
Joined: 22/09/2010(UTC)
Posts: 9
Location: Hungary

Here I am again.

http://www.mfk.unideb.hu...zlo.radnay/smatherror.sm

In this I have made the changes that you recommended Radovan. I had to modify the datas to show this:

In the bottom of the page I have calculated the value of "A" on the basis of the datas, calculated by the program previously.

The results are different.

This is the other thing I have mentioned in my first comment.

L.R.
Offline omorr  
#9 Posted : 24 April 2012 16:13:43(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 Radnay,

I just have to repeat that there are obviously some problems in the SMath calculations regarding your examples. It is good that you found this and reported it as well.
I also know that Andrey will answer on this and find what the problem was as soon as he can.

Regards,
Radovan
When Sisyphus climbed to the top of a hill, they said: "Wrong boulder!"
Offline Andrey Ivashov  
#10 Posted : 25 April 2012 00:35:37(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)
I would classify this as a bug. Will fix it. Thanks.

Best regards, Andrey Ivashov.
Offline studoc  
#11 Posted : 29 April 2012 07:03:53(UTC)
studoc


Rank: Member

Groups: Registered
Joined: 13/05/2011(UTC)
Posts: 17
Location: coolum bch, Australia

Hi guys,

On the subject of units, I need a little prod...
Smath fastracks a lot of high end maths, I must concede though all of my stuff is low brow and my use of the program directed at formalising repetitive tasks (this the program also does well...!)

The units confound me though....

The program can ignore the units I have used and substitute it's own.

Can I convert the answer into the units I want....?

cheers,

Stu.
Offline omorr  
#12 Posted : 29 April 2012 08:47:59(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 Stu,
studoc wrote:
The program can ignore the units I have used and substitute it's own.

Can I convert the answer into the units I want....?

Yes, you can. See for example this tutorial please, Equations and Units starting from page 5.

Regards,
Radovan

Edited by user 29 April 2012 12:24:33(UTC)  | Reason: Not specified

When Sisyphus climbed to the top of a hill, they said: "Wrong boulder!"
Offline studoc  
#13 Posted : 29 April 2012 13:18:23(UTC)
studoc


Rank: Member

Groups: Registered
Joined: 13/05/2011(UTC)
Posts: 17
Location: coolum bch, Australia

Thanks for that Radovan, just the sort of thing I needed...
I do get some interesting results, including the original units, in my answer though...
For this time it's far easier to enter the units as text only, i'll keep this info handy and endeavour incorporate it in the next project...

thanks...!

Stu.
Offline omorr  
#14 Posted : 29 April 2012 13:39:26(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)
You are welcome, Stu,
studoc wrote:
I do get some interesting results, including the original units, in my answer though...
For this time it's far easier to enter the units as text only, i'll keep this info handy and endeavour incorporate it in the next project...

If you find something that does look suspicious or problematic to you regarding units, just report it. That might be a bug and all of us will be grateful to you if you find one. The user feedback is very important to SMath project, especially reported possible bugs in order to get fixed.

Regards,
Radovan

Edited by user 29 April 2012 13:41:27(UTC)  | Reason: Not specified

When Sisyphus climbed to the top of a hill, they said: "Wrong boulder!"
Offline studoc  
#15 Posted : 17 May 2012 06:28:28(UTC)
studoc


Rank: Member

Groups: Registered
Joined: 13/05/2011(UTC)
Posts: 17
Location: coolum bch, Australia

Hi,

Having another look at this, don't know if it's so much a possible bug, as much as my lack of understanding, but it grinds me to a halt...

I looked through your link and am relying on the last section (complex conversions) to reliably establish my units (tick that box), but the calculation.....

If we consider that weight equals mass times acceleration due to gravity,
vis.
W=mg

I can declare the units of mass as, "kg" and the units of acceleration due to gravity as, "m/s^2", but when I enter, "W=" there is no result... Hovering over the expression shows the message, "operation cannot be performed with units", but we all know the units are, "N".

In a simple example, this is the sort of thing I am endeavouring to straighten out, can I.....?

cheers,

Stu.
Offline omorr  
#16 Posted : 17 May 2012 11:40:56(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 Stu,

I did not quite understand you, sorry. But Here is a simple example:
Simple example with units

Pay attention the black and blue variables. Blue variables are "units" and they are different from the black variables with the same name. I used (above the separation line) "g" but this is apredefined variable inside the unit SMath system - therefore is in blue color. Below the line I used "g" as a variable in SMtah and then represented "W" in different units. Just click on it and start typing. The Dynamic assistnce will show you the list and you can choose the desired one (by TAB or double click on it)

Example with changing units

Regards,
Radovan
When Sisyphus climbed to the top of a hill, they said: "Wrong boulder!"
Offline Andrey Ivashov  
#17 Posted : 17 May 2012 20:16:42(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)
The initial issue fixed:



Regards.
thanks 1 user thanked Andrey Ivashov for this useful post.
on 17/05/2012(UTC)
Users browsing this topic
Guest
Similar Topics
using some math functions with units (log) (Questions)
by harry bee 16/04/2024 02:17:52(UTC)
Failing Newton-Raphson method due to "Units not matching" (Questions)
by João Pereira 14/03/2024 00:48:52(UTC)
Solve with units (Questions)
by OchkovVF 31/01/2024 00:41:23(UTC)
how to change result units to normal (Questions)
by meka1240 28/01/2024 04:44:39(UTC)
Removing Units (Questions)
by RFreund 23/01/2024 04:28:49(UTC)
SMath units (Questions)
by Oichi 24/11/2023 11:13:51(UTC)
Can we use here units (Questions)
by OchkovVF 19/11/2023 22:08:55(UTC)
UnitsOf() to handle custom units (Feature Requests)
by mkraska 29/10/2023 04:48:22(UTC)
Square root with units (Questions)
by wb.c 27/10/2023 02:55:43(UTC)
Change of system of units Metric System, International System and Imperial System (Questions)
by Danuko 23/10/2023 04:37:01(UTC)
Units problem with exponential (Bugs & Problems)
by juhiimi 17/10/2023 23:29:01(UTC)
Issue plotting function with units (Questions)
by tedd 08/09/2023 19:29:14(UTC)
Units to string - defined vs. displayed units (Questions)
by wb.c 06/07/2023 19:38:05(UTC)
"Operation cannot be performed with units" for exponential function (Questions)
by EngMath 25/06/2023 20:26:10(UTC)
Units in variables from a matrix (Questions)
by RC_eng 11/06/2023 12:37:44(UTC)
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.