×
INTELLIGENT WORK FORUMS
FOR ENGINEERING PROFESSIONALS

Contact US

Log In

Come Join Us!

Are you an
Engineering professional?
Join Eng-Tips Forums!
  • Talk With Other Members
  • Be Notified Of Responses
    To Your Posts
  • Keyword Search
  • One-Click Access To Your
    Favorite Forums
  • Automated Signatures
    On Your Posts
  • Best Of All, It's Free!

*Eng-Tips's functionality depends on members receiving e-mail. By joining you are opting in to receive e-mail.

Posting Guidelines

Promoting, selling, recruiting, coursework and thesis posting is forbidden.

Students Click Here

Interesting Bug in SMath
2

Interesting Bug in SMath

Interesting Bug in SMath

(OP)
There have been a few items that seem not to work, since SMath has gone to the market. Mostly dealing with numbers being too large... This one is with units.



-----*****-----
So strange to see the singularity approaching while the entire planet is rapidly turning into a hellscape. -John Coates

-Dik

RE: Interesting Bug in SMath

Two possible explanations:

The inputs should be defined above the equation region, not on the same line. I have noticed that the "center" of an expression field is not always the obvious row it's on but somewhere below. Shifting the result Cr=# down a line sometimes fixes it. I acknowledge that the error does not correspond to this problem, but I'd move it anyway.

One of the variables has a value of "0*unit". Sometimes SMath can evaluate an expression with mismatched units, when the numerical value is zero. And sometimes it can't.

Were both expressions typed in full, all keystrokes, or was one of them typed in full and the second generated by select-copy-paste? Try the copy-paste from the working expression back into the bad expression, just to see if what you think is the same expression actually might not be for various reasons (e.g. the "1" and "l" look similar, etc.).

RE: Interesting Bug in SMath

(OP)
Neither is the case... I can move the Variable output name below the cut and paste of the formula... and it doesn't change. I do all my calcs in Imperial and SI... I don't know who looks at them. I'm a dinosaur... I can work in both... but only really understand Imperial. If you ask me what a W12x26 moment capacity is, it's about 120 K-ft (350 grade), but if you ask me the capacity of a W310x39 is, I have to stop and think about it... (They're the same beams, and I cannot immediately convert the metric to the imperial... I have to think about that first) Both were 'exact' cut and paste... formulae for values with the output is the same as the one in the equation.
I've tried cutting and pasting all variables from their initial definition into the formula, and none of them works. But the answer cut and paste works for both Imperial and SI.




-----*****-----
So strange to see the singularity approaching while the entire planet is rapidly turning into a hellscape. -John Coates

-Dik

RE: Interesting Bug in SMath

I forget the name of the setting exactly, but can you switch on "numerical format" or whatever it's called and compare them?
Do you have the yellow pop=up when you hover the mouse, displaying a large elaborate fraction? Are they the same?

RE: Interesting Bug in SMath

(OP)
I sometimes check...

-----*****-----
So strange to see the singularity approaching while the entire planet is rapidly turning into a hellscape. -John Coates

-Dik

RE: Interesting Bug in SMath

OK it took me a while to remember the trick to open a v1.0 file in 0.99.

Now that I have it open, the two equations look the same "inside" when I select >optimization>symbolic.

Both give me 8.3837*10^5 Newtons. But the "Cr=" refuses to work. I can recreate the problem but various fiddlings didn't help.

RE: Interesting Bug in SMath

(OP)

Quote (OK it took me a while to remember the trick to open a v1.0 file in 0.99.)


How do you do that?

-----*****-----
So strange to see the singularity approaching while the entire planet is rapidly turning into a hellscape. -John Coates

-Dik

RE: Interesting Bug in SMath

I thought I had previously posted about that. Seems I hadn't.
It's worth a separate posting (for posterity).

RE: Interesting Bug in SMath

(OP)
be appreciated... thanks Sparweb...

-----*****-----
So strange to see the singularity approaching while the entire planet is rapidly turning into a hellscape. -John Coates

-Dik

RE: Interesting Bug in SMath

Just from random poking, if you right click the equation and set "Optimization" to numeric instead of symbolic, it works correctly.

https://files.engineering.com/getfile.aspx?folder=...






TTFN (ta ta for now)
I can do absolutely anything. I'm an expert! https://www.youtube.com/watch?v=BKorP55Aqvg
FAQ731-376: Eng-Tips.com Forum Policies forum1529: Translation Assistance for Engineers Entire Forum list http://www.eng-tips.com/forumlist.cfm

RE: Interesting Bug in SMath

(OP)
Thanks IRS... I'll see if that approach works with a couple of other issues I've found. I've never done that with my programs... thanks...

-----*****-----
So strange to see the singularity approaching while the entire planet is rapidly turning into a hellscape. -John Coates

-Dik

RE: Interesting Bug in SMath

(OP)
The approach fixes the issue with ro immediately preceding this formula. I don't know what the distinction is, but it's a great workaround.

-----*****-----
So strange to see the singularity approaching while the entire planet is rapidly turning into a hellscape. -John Coates

-Dik

RE: Interesting Bug in SMath

(OP)
I wasn't aware of that 'symbolic' and 'numeric' switch... thanks so much. It may fix a few other issues I've encountered.

-----*****-----
So strange to see the singularity approaching while the entire planet is rapidly turning into a hellscape. -John Coates

-Dik

RE: Interesting Bug in SMath

(OP)
IRS... that fix fixed a few other problems I had... thanks.

-----*****-----
So strange to see the singularity approaching while the entire planet is rapidly turning into a hellscape. -John Coates

-Dik

RE: Interesting Bug in SMath

(OP)
I'll take a gander, maybe I've set it in preferences... it doesn't seem to have that option... but knowing I can do this may fix some other issues.

@Sparweb... "OK it took me a while to remember the trick to open a v1.0 file in 0.99." Do you have this info... it'll likely be handy... thanks Dik



-----*****-----
So strange to see the singularity approaching while the entire planet is rapidly turning into a hellscape. -John Coates

-Dik

Red Flag This Post

Please let us know here why this post is inappropriate. Reasons such as off-topic, duplicates, flames, illegal, vulgar, or students posting their homework.

Red Flag Submitted

Thank you for helping keep Eng-Tips Forums free from inappropriate posts.
The Eng-Tips staff will check this out and take appropriate action.

Reply To This Thread

Posting in the Eng-Tips forums is a member-only feature.

Click Here to join Eng-Tips and talk with other members! Already a Member? Login



News


Close Box

Join Eng-Tips® Today!

Join your peers on the Internet's largest technical engineering professional community.
It's easy to join and it's free.

Here's Why Members Love Eng-Tips Forums:

Register now while it's still free!

Already a member? Close this window and log in.

Join Us             Close