 Rank: Newbie
Groups: Registered
Joined: 9/22/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 user Thursday, May 17, 2012 10:08:09 PM(UTC)
| Reason: Not specified
|
|
|
|
|
|
  Rank: Administration Groups: Administrators
Joined: 7/11/2008(UTC) Posts: 751   Was thanked: 218 time(s) in 120 post(s)
|
Radnay, please send file(s) to me and I will check the reason of the errors you've mentioned.
Best regards.
|
|
|
|
|
|
 Rank: Newbie
Groups: Registered
Joined: 9/22/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
|
|
|
|
|
|
  Rank: Advanced Member Groups: Registered, Advanced Member Joined: 6/23/2009(UTC) Posts: 1,108   Was thanked: 98 time(s) in 87 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
|
|
|
|
|
|
 Rank: Newbie
Groups: Registered
Joined: 9/22/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.smThe errors are on the 4. ,5. ,8. page. I cant understand it. L.R.
|
|
|
|
|
|
  Rank: Advanced Member Groups: Registered, Advanced Member Joined: 6/23/2009(UTC) Posts: 1,108   Was thanked: 98 time(s) in 87 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
|
|
|
|
|
|
 Rank: Newbie
Groups: Registered
Joined: 9/22/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.
|
|
|
|
|
|
 Rank: Newbie
Groups: Registered
Joined: 9/22/2010(UTC) Posts: 9 Location: Hungary
|
Here I am again. http://www.mfk.unideb.hu...zlo.radnay/smatherror.smIn 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.
|
|
|
|
|
|
  Rank: Advanced Member Groups: Registered, Advanced Member Joined: 6/23/2009(UTC) Posts: 1,108   Was thanked: 98 time(s) in 87 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
|
|
|
|
|
|
  Rank: Administration Groups: Administrators
Joined: 7/11/2008(UTC) Posts: 751   Was thanked: 218 time(s) in 120 post(s)
|
I would classify this as a bug. Will fix it. Thanks.
Best regards, Andrey Ivashov.
|
|
|
|
|
|
  Rank: Member Groups: Registered
Joined: 5/13/2011(UTC) Posts: 10 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.
|
|
|
|
|
|
  Rank: Advanced Member Groups: Registered, Advanced Member Joined: 6/23/2009(UTC) Posts: 1,108   Was thanked: 98 time(s) in 87 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 Sunday, April 29, 2012 12:24:33 PM(UTC)
| Reason: Not specified
|
|
|
|
|
|
  Rank: Member Groups: Registered
Joined: 5/13/2011(UTC) Posts: 10 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.
|
|
|
|
|
|
  Rank: Advanced Member Groups: Registered, Advanced Member Joined: 6/23/2009(UTC) Posts: 1,108   Was thanked: 98 time(s) in 87 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 Sunday, April 29, 2012 1:41:27 PM(UTC)
| Reason: Not specified
|
|
|
|
|
|
  Rank: Member Groups: Registered
Joined: 5/13/2011(UTC) Posts: 10 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.
|
|
|
|
|
|
  Rank: Advanced Member Groups: Registered, Advanced Member Joined: 6/23/2009(UTC) Posts: 1,108   Was thanked: 98 time(s) in 87 post(s)
|
Hello Stu, I did not quite understand you, sorry. But Here is a simple example:  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)  Regards, Radovan
|
|
|
|
|
|
  Rank: Administration Groups: Administrators
Joined: 7/11/2008(UTC) Posts: 751   Was thanked: 218 time(s) in 120 post(s)
|
The initial issue fixed:  Regards.
|
 1 user thanked smath for this useful post.
|
|
|
|
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.