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 Sparweb  
#1 Posted : 04 January 2019 07:06:11(UTC)
Sparweb

Rank: Newbie

Groups: Registered
Joined: 25/11/2018(UTC)
Posts: 6
Canada

Hi,
I have an error message that I can't figure out.
For the most part, I have been able to learn Smath on my own, despite the absence of any user manual, and only a few brief tutorials written by users themselves (Liengme and Urroz).
If there are any deeper manuals to recommend, I would be very happy to see links to them.
I am still relying very heavily on my long experience with Mathcad to pick this up - but it's a double-edged sword because Smath doesn't do all that Mathcad did.

One thing I would like is a list of error messages and their meaning. I can't find any references to this error expression on the SmathStudio website/forum. I could probably solve this for myself if I could find one. If I have missed an important source of information, I'm sorry, but please point me to the right place.

The file linked below is part of a very long analysis that's suddenly gone bad on me - no idea why.
Only the parts before the strange error are included. The rest is very very long.

Thank you (in advance) to everyone that can help.

I've also included a screen-capture of the offending expression:

ERROR.png

ERROR.sm (77kb) downloaded 16 time(s).

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

Offline Ber7  
#2 Posted : 04 January 2019 08:24:27(UTC)
Ber7


Rank: Advanced Member

Groups: Registered
Joined: 15/07/2010(UTC)
Posts: 437
Man
Israel
Location: Beer-Sheva

Was thanked: 520 time(s) in 288 post(s)
Use the eval function.
ERROReval.sm (81kb) downloaded 129 time(s).
Offline Jean Giraud  
#3 Posted : 04 January 2019 16:17:25(UTC)
Jean Giraud

Rank: Guest

Groups: Registered
Joined: 04/07/2015(UTC)
Posts: 6,866
Canada

Was thanked: 981 time(s) in 809 post(s)
Originally Posted by: Sparweb Go to Quoted Post
Only the parts before the strange error are included.

Smath 6179 shows no error ... puzzling vs 6884 ?
HOW DO I ADD COLUMNS TO AN EXISTING MATRIX?
Like this attached.


Here is a Matrix Utilities Mining.

Cheers ... Jean

Cols_Rows.sm (38kb) downloaded 15 time(s).

Utilities Matrix Treasury_1.sm (391kb) downloaded 13 time(s).
Offline Jean Giraud  
#4 Posted : 04 January 2019 18:02:27(UTC)
Jean Giraud

Rank: Guest

Groups: Registered
Joined: 04/07/2015(UTC)
Posts: 6,866
Canada

Was thanked: 981 time(s) in 809 post(s)
... otherwise in the attached.

Cols_Rows.sm (47kb) downloaded 11 time(s).
Offline CBG  
#5 Posted : 05 January 2019 06:34:31(UTC)
CBG


Rank: Advanced Member

Groups: Registered
Joined: 14/10/2015(UTC)
Posts: 308

Was thanked: 77 time(s) in 58 post(s)
Another solution is to put the equation in numerical optimization mode,
and the error is eliminated.

Optimizatio_numeric.png


ERROReval_r1.sm (83kb) downloaded 9 time(s).


Best Regards


Carlos
thanks 2 users thanked CBG for this useful post.
on 05/01/2019(UTC),  on 11/10/2021(UTC)
Offline Sparweb  
#6 Posted : 05 January 2019 08:19:18(UTC)
Sparweb

Rank: Newbie

Groups: Registered
Joined: 25/11/2018(UTC)
Posts: 6
Canada

Wow,
Thanks to everyone for your help.

Firstly, I'm surprised that there's a simple solution to the expression that would not solve. It looks like I can globally select all the fields on a math page together and make sure they are all set to "numeric" just to make sure I haven't accidentally toggled something.
Not that I am clear on just what "symbolic" is for... presumably if I play with "symbolic" expressions I can get Smath to simplify an expression? If I was a math teacher, or a student, I can see how that would would be fun or helpful.

Secondly, thank you for volunteering the suggestions to augment the matrix for me. I was going to ask in a separate post... You guys are so quick!
Can you clarify, please: is there no way to simply add a row or a column to a matrix?
I can probably use the Insertcol() function, but if that's the way to go, then couldn't I use Augment() with the new columns?

Thanks again! Good
Offline Sparweb  
#7 Posted : 05 January 2019 08:25:23(UTC)
Sparweb

Rank: Newbie

Groups: Registered
Joined: 25/11/2018(UTC)
Posts: 6
Canada

I tried to click the "thank" button on the upper right, but it throws an error every time.

Jean, Ber7, CBG, know that I would if I could.
Offline Sparweb  
#8 Posted : 05 January 2019 08:47:48(UTC)
Sparweb

Rank: Newbie

Groups: Registered
Joined: 25/11/2018(UTC)
Posts: 6
Canada

Thinking laterally...

I created a fresh SM sheet, and put a single new 14x6 matrix in it, with no values filled in.

I then opened it in Notepad, and also opened in Notepad the SM sheet with the incomplete 14x4 matrix.

I was then able to cut-and-paste some of the values from one to the other. Where the element value is a simple decimal value in <operand> markup, it was easy to identify the correct lines. When the element is a composite of operands and operators for the values with exponents and units, it's not so clear, so I didn't try copying them. But it would be possible, if I thought it would save time.

I also noticed that I could Find-Replace all the blank fields in the matrix (shown as "#" in the raw file) with "0". The Notepad method is faster than typing them all in 58 times.

Quote:
<region id="4" left="0" top="360" width="299" height="261" color="#000000" bgColor="#ffffff" fontSize="10">
<math decimalPlaces="4" exponentialThreshold="5" trailingZeros="false">
<input>
<e type="operand">Material</e>
<e type="operand">1.5</e>
<e type="operand">#</e>
...
<e type="operand">0</e>
<e type="operand">14</e>
<e type="operand">6</e>
<e type="function" args="86">mat</e>
<e type="operator" args="2">:</e>
</input>


With a matrix having >50 elements, this approach may save time do tedious re-typing of values, and definitely avoid typing errors (a SERIOUS ISSUE for me!).
Offline Jean Giraud  
#9 Posted : 05 January 2019 18:01:17(UTC)
Jean Giraud

Rank: Guest

Groups: Registered
Joined: 04/07/2015(UTC)
Posts: 6,866
Canada

Was thanked: 981 time(s) in 809 post(s)
Originally Posted by: Sparweb Go to Quoted Post
I tried to click the "thank" button on the upper right, but it throws an error every time.


Many have reported not working for them. However, many times I have been "thanked"
Few more things:
1. The function replace(A,B,r,c) is an essential component in Image Processing.
2. You mentioned a long project ... Oh ! ... in that case is it wise to save
a copy and work alternately on either one. Smath likes crashing and if so,
the project is gone for ever !!!
3. Yes: you can augment/stack as in the attached.
4. Unless the project is naturally all "Numeric" compatible, you have to
consider Symbolic/None as applicable by part. By default, a new work sheet
is in Numeric mode.

Cheers ... Jean

Page2.sm (20kb) downloaded 22 time(s).

Users browsing this topic
Guest
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.