UPDATED: Stable: SMath Studio 0.99.6671 (07 April 2018)

UPDATED: Stable: SMath Studio 0.99.6671 (07 April 2018) - Messages

#1 Posted: 2018/4/5 18:40:39
Andrey Ivashov

Andrey Ivashov

2,315 likes in 3,949 posts.

Group: Super Administrator




System requirements

  • Desktop (Windows):
    Framework: .NET Framework 2.0 or higher
  • Desktop (Linux):
    Framework: Mono 2.0 (libmono-winforms-2.0-cil package) or higher


Interface languages (37 languages)

  • [ARA] Arabic / العربي
  • [BEL] Belarusian / Беларуская
  • [BUL] Bulgarian / Български
  • [CAT] Catalan / Català
  • [CHS] Chinese (Simplified) / 简体中文
  • [CHT] Chinese (Traditional) / 簡體中文
  • [CPP] Portuguese (Brazil) / Brazil (Português)
  • [CZE] Czech / Čeština
  • [DAN] Danish / Dansk
  • [DUT] Dutch / Nederlands
  • [ENG] English / English
  • [FAS] Persian / فارسی
  • [FIN] Finnish / Suomi
  • [FRE] French / Français
  • [GER] German / Deutsch
  • [GRE] Greek / Ελληνικά
  • [HEB] Hebrew / עברית
  • [HUN] Hungarian / Magyar
  • [IND] Indonesian / Bahasa Indonesia
  • [ITA] Italian / Italiano
  • [JPN] Japanese / 日本語
  • [KOR] Korean / 한국어
  • [LAV] Latvian / Latviešu
  • [LTH] Lithuanian / Lietuvių
  • [NOR] Norwegian / Norsk
  • [POL] Polish / Polski
  • [POR] Portuguese / Português
  • [RON] Romanian / Română
  • [RUS] Russian / Русский
  • [SCC] Serbian (Latin) / Srpski
  • [SCR] Croatian / Hrvatski
  • [SLK] Slovak / Slovenčina
  • [SPA] Spanish / Español
  • [SRP] Serbian (Cyrillic) / Српски
  • [SWE] Swedish / Svenska
  • [TUR] Turkish / Türkçe
  • [UKR] Ukrainian / Українська



Tutorial

SMath Studio tutorial by Bernard Liengme.
  • SMathPrimer.pdf (Date: 11.11.2011. File size: 2.06MB) - to open in Adobe Acrobat Reader

Introduction of the use of SMath Studio by Gilberto E. Urroz, Ph.D., P.E.


Other files

SMath Studio icons () of all available sizes (16x16, 24x24, 32x32, 48x48, 64x64, 96x96, 128x128, 256x256) in PNG format.
9 users liked this post
NDTM Amarasekera 2018/4/5 23:09:00, Вячеслав Мезенцев 2018/4/6 01:20:00, Radovan Omorjan 2018/4/6 03:42:00, sergio 2018/4/6 04:52:00, Davide Carpi 2018/4/6 06:23:00, Arie 2018/4/6 10:08:00, Василий Николаевич Храмушин 2018/4/6 16:11:00, bdrunagle 2018/4/7 07:56:00, IVR 2018/4/10 05:37:00
#2 Posted: 2018/4/5 19:18:35
Ruben Sidranski

Ruben Sidranski

17 likes in 463 posts.

Group: User

Thank you Andrey.
I have a few questions
  1. Can a snippet be nested? I have a function "snippet" that relies on another snippet. This file is an example and I want to reference only this snippet function which will embed the other snippet function
  2. Do Snippets need to be saved as SM? I had an issue with my SMZ files which I default to saving everything out of habit. I have not tried this version
  3. Equation wrap does not work on exponents. I know this feature is a work in progress. I even posted a work around

Split not work exponent.sm (14.33 KiB) downloaded 953 time(s).
#3 Posted: 2018/4/5 21:58:14
Jean Giraud

Jean Giraud

983 likes in 6,866 posts.

Group: User

Wrote

I have a few questions



Sorry for answering a personalized question.
Doctored AFAIU.

ElsidSigma.PNG
#4 Posted: 2018/4/6 01:24:17
Ruben Sidranski

Ruben Sidranski

17 likes in 463 posts.

Group: User

Andrey,
User error on the Snippet. Because snippets are static, you can embed one Snippet that calls on another Snippet. I thought it was more of a reference like rfile. I like to go back and update documentation/clarifications as time goes by.

Jean,
The sheet I posted is the second half "liquid" equation, per ASHRAE, to calculate the water vapor pressure. It's parabolic and the numbers are within calculation error due to the coefficients being converted from SI to IP. Disclaimer is in the 2017 ASHRAE Handbook. The sample values that I ran, I was within 0.002 psi of most values published in the handbook ... well within engineering tolerances
#5 Posted: 2018/4/6 01:58:13
Jean Giraud

Jean Giraud

983 likes in 6,866 posts.

Group: User

Wrote

The sheet I posted is the second half "liquid" equation, per ASHRAE, to calculate the water vapor pressure



What's that second half liquid equation ?, I must have missed something in so many years.
My point [previous reply] was to use Sigma instead of Gyzma.

Inst_Water bar Saturation [tdegC].sm (51.69 KiB) downloaded 874 time(s).

#6 Posted: 2018/4/6 11:48:35
Ruben Sidranski

Ruben Sidranski

17 likes in 463 posts.

Group: User

Andrey,
Has this been figured out or do I need to add it to the wish list?
Postfix operator (dB scale in my case)
I was trying to transcribe some old MathCAD sound calculations
#7 Posted: 2018/4/6 12:00:54
Andrey Ivashov

Andrey Ivashov

2,315 likes in 3,949 posts.

Group: Super Administrator

Wrote

Andrey,
Has this been figured out or do I need to add it to the wish list?
Postfix operator (dB scale in my case)
I was trying to transcribe some old MathCAD sound calculations


I've missed this thread. Please add it to https://smath.info/bts/ - it is easier for me to manage requests there.
Thanks in advance!
#8 Posted: 2018/4/6 16:16:28
Ruben Sidranski

Ruben Sidranski

17 likes in 463 posts.

Group: User

Posted SS-3532.
FYI, There appears to be a bug in the forum software as I could not post a hyperlink to the forum page. The URL pop-up came up and it would then lock up my web browser (IE and Firefox). Clicking OK or Cancel did nothing
#9 Posted: 2018/4/6 18:08:10
tomracing

tomracing

8 likes in 16 posts.

Group: User

Unfortunatly 0_99_6670 has an issue to start for me on linux, something about the printer seems to be required.
Hopefully you can make some of this terminal message i get and fix it eventually.

Quote

WARNING: The runtime version supported by this application is unavailable.
Using default runtime: v4.0.30319

(mono:960): Gtk-WARNING **: 22:55:52.067: Unable to locate theme engine in module_path: "adwaita",

(mono:960): Gtk-WARNING **: 22:55:52.086: Unable to locate theme engine in module_path: "adwaita",

Unhandled Exception:
System.Drawing.Printing.InvalidPrinterException: No printers are installed.
at System.Drawing.Printing.PageSettings.get_PaperSize () [0x00018] in <020b17b0944a400f98b947de862cf1c4>:0
at SMath.Manager.AppSettings.Initialize (SMath.Manager.PluginsStatusEventHandler loaded) [0x00013] in <357f5ddcf7854e8d98f4122101e9db1b>:0
at .. (System.String[] ) [0x00059] in <2824d45d6dcf4ff891701e290e7054bb>:0
[ERROR] FATAL UNHANDLED EXCEPTION: System.Drawing.Printing.InvalidPrinterException: No printers are installed.
at System.Drawing.Printing.PageSettings.get_PaperSize () [0x00018] in <020b17b0944a400f98b947de862cf1c4>:0
at SMath.Manager.AppSettings.Initialize (SMath.Manager.PluginsStatusEventHandler loaded) [0x00013] in <357f5ddcf7854e8d98f4122101e9db1b>:0
at .. (System.String[] ) [0x00059] in <2824d45d6dcf4ff891701e290e7054bb>:0

1 users liked this post
Andrey Ivashov 2018/4/6 18:29:00
#10 Posted: 2018/4/6 18:31:11
Andrey Ivashov

Andrey Ivashov

2,315 likes in 3,949 posts.

Group: Super Administrator

Wrote

Unfortunatly 0_99_6670 has an issue to start for me on linux, something about the printer seems to be required.
Hopefully you can make some of this terminal message i get and fix it eventually.

Quote

WARNING: The runtime version supported by this application is unavailable.
Using default runtime: v4.0.30319

(mono:960): Gtk-WARNING **: 22:55:52.067: Unable to locate theme engine in module_path: "adwaita",

(mono:960): Gtk-WARNING **: 22:55:52.086: Unable to locate theme engine in module_path: "adwaita",

Unhandled Exception:
System.Drawing.Printing.InvalidPrinterException: No printers are installed.
at System.Drawing.Printing.PageSettings.get_PaperSize () [0x00018] in <020b17b0944a400f98b947de862cf1c4>:0
at SMath.Manager.AppSettings.Initialize (SMath.Manager.PluginsStatusEventHandler loaded) [0x00013] in <357f5ddcf7854e8d98f4122101e9db1b>:0
at .. (System.String[] ) [0x00059] in <2824d45d6dcf4ff891701e290e7054bb>:0
[ERROR] FATAL UNHANDLED EXCEPTION: System.Drawing.Printing.InvalidPrinterException: No printers are installed.
at System.Drawing.Printing.PageSettings.get_PaperSize () [0x00018] in <020b17b0944a400f98b947de862cf1c4>:0
at SMath.Manager.AppSettings.Initialize (SMath.Manager.PluginsStatusEventHandler loaded) [0x00013] in <357f5ddcf7854e8d98f4122101e9db1b>:0
at .. (System.String[] ) [0x00059] in <2824d45d6dcf4ff891701e290e7054bb>:0



Do you have any printer installed? Can you try to install a virtual one (if it is possible on Linux)?
#11 Posted: 2018/4/7 05:01:06
Rafal

Rafal

0 likes in 1 posts.

Group: User

Hi,

I have problem with new version (6670).


Assigning a variable value with the appropriate unit before the "for" loop causes an error, where the older version (6622) worked correctly.

example.sm (5.62 KiB) downloaded 1029 time(s). - example

My exaple in old wersion

My example in new version

Regards
Rafal
#12 Posted: 2018/4/7 06:45:31
Andrey Ivashov

Andrey Ivashov

2,315 likes in 3,949 posts.

Group: Super Administrator

Hello, Rafal.

Wrote

I have problem with new version (6670).


Assigning a variable value with the appropriate unit before the "for" loop causes an error, where the older version (6622) worked correctly.

example.sm (5.62 KiB) downloaded 1029 time(s). - example



This is by design. In the example you are trying to set element of scalar by index. This is an error. In previous versions of SMath Studio program just lost value of the scalar, which was wrong.

You have three options here:
1) Remove σ:=100*MPa line at all (actually it gave nothing to you in previous versions of SMath Studio as well);
1) Add Clear(σ)=... before the for loop;
2) Use another name for σ variable.

Best regards.
1 users liked this post
sergio 2018/4/7 08:16:00
#13 Posted: 2018/4/7 07:05:16
Martin Kraska

Martin Kraska

1,308 likes in 2,221 posts.

Group: Moderator

Wrote



This is by design. In the example you are trying to set element of scalar by index. This is an error. In previous versions of SMath Studio program just lost value of the scalar, which was wrong.

You have three options here:
1) Remove σ:=100*MPa line at all (actually it gave nothing to you in previous versions of SMath Studio as well);
1) Add Clear(σ)=... before the for loop;
2) Use another name for σ variable.

Best regards.



The change was introduced because issuing an error message was preferred over the danger of silently doing unintended things (SS 3525)

The real problem is in the useless error message "cannot calculate". It is misleading, as not the calculation does fail but the assignment by index to an existing scalar.

A message like "element assignment is only possible for empty or matrix objects" would help. I am not aware of other situations where such an assignment might fail, thus this message could be used by default in failing element assignments.
Martin KraskaPre-configured portable distribution of SMath Studio: https://en.smath.info/wiki/SMath%20with%20Plugins.ashx
2 users liked this post
sergio 2018/4/7 08:16:00, frapuano 2018/4/7 08:24:00
#14 Posted: 2018/4/7 15:50:12
Andrey Ivashov

Andrey Ivashov

2,315 likes in 3,949 posts.

Group: Super Administrator

Topic updated with corrected build 6671. Fixed critical issue for environment without default printer installed and/or OS version less then Windows 7. SMath Studio in the Cloud updated and restored.

Sorry for inconvenience!
Best regards, Andrey Ivashov.
4 users liked this post
Igor Skarine 2018/4/7 17:07:00, Вячеслав Мезенцев 2018/4/7 16:11:00, frapuano 2018/4/7 17:23:00, sergio 2018/4/8 15:00:00
#15 Posted: 2018/4/8 15:10:01
tomracing

tomracing

8 likes in 16 posts.

Group: User

In regards to the previous error, i've tried installing cups with a pdf but haven't completed it yet.

anyway 6671 gives an even larger exception notification
Quote

Unhandled Exception:
System.TypeInitializationException: The type initializer for 'System.Console' threw an exception. ---> System.TypeInitializationException: The type initializer for 'System.ConsoleDriver' threw an exception. ---> System.Exception: Magic number is wrong: 542
at System.TermInfoReader.ReadHeader (System.Byte[] buffer, System.Int32& position) [0x00028] in <2dfe84a36ef4410ca18642993b51b799>:0
at System.TermInfoReader..ctor (System.String term, System.String filename) [0x0005f] in <2dfe84a36ef4410ca18642993b51b799>:0
at System.TermInfoDriver..ctor (System.String term) [0x00055] in <2dfe84a36ef4410ca18642993b51b799>:0
at System.ConsoleDriver.CreateTermInfoDriver (System.String term) [0x00000] in <2dfe84a36ef4410ca18642993b51b799>:0
at System.ConsoleDriver..cctor () [0x0004d] in <2dfe84a36ef4410ca18642993b51b799>:0
--- End of inner exception stack trace ---
at System.Console.SetupStreams (System.Text.Encoding inputEncoding, System.Text.Encoding outputEncoding) [0x00007] in <2dfe84a36ef4410ca18642993b51b799>:0
at System.Console..cctor () [0x0008e] in <2dfe84a36ef4410ca18642993b51b799>:0
--- End of inner exception stack trace ---
at System.Windows.Forms.XplatUIX11.HandleError (System.IntPtr display, System.Windows.Forms.XErrorEvent& error_event) [0x0009a] in <620961265dcd4ef2bef9e70169cb6e5a>:0
at (wrapper managed-to-native) System.Windows.Forms.XplatUIX11.XPending(intptr)
at System.Windows.Forms.XplatUIX11.UpdateMessageQueue (System.Windows.Forms.XEventQueue queue, System.Boolean allowIdle) [0x00166] in <620961265dcd4ef2bef9e70169cb6e5a>:0
at System.Windows.Forms.XplatUIX11.UpdateMessageQueue (System.Windows.Forms.XEventQueue queue) [0x00000] in <620961265dcd4ef2bef9e70169cb6e5a>:0
at System.Windows.Forms.XplatUIX11.GetMessage (System.Object queue_id, System.Windows.Forms.MSG& msg, System.IntPtr handle, System.Int32 wFilterMin, System.Int32 wFilterMax) [0x0001c] in <620961265dcd4ef2bef9e70169cb6e5a>:0
at System.Windows.Forms.XplatUI.GetMessage (System.Object queue_id, System.Windows.Forms.MSG& msg, System.IntPtr hWnd, System.Int32 wFilterMin, System.Int32 wFilterMax) [0x00000] in <620961265dcd4ef2bef9e70169cb6e5a>:0
at System.Windows.Forms.Application.RunLoop (System.Boolean Modal, System.Windows.Forms.ApplicationContext context) [0x00331] in <620961265dcd4ef2bef9e70169cb6e5a>:0
at System.Windows.Forms.Application.Run (System.Windows.Forms.ApplicationContext context) [0x00011] in <620961265dcd4ef2bef9e70169cb6e5a>:0
at System.Windows.Forms.Application.Run (System.Windows.Forms.Form mainForm) [0x00006] in <620961265dcd4ef2bef9e70169cb6e5a>:0
at .. () [0x0000a] in <2b5e52884bc94eee85ddd10306fe74aa>:0
at System.Threading.ThreadHelper.ThreadStart_Context (System.Object state) [0x00014] in <2dfe84a36ef4410ca18642993b51b799>:0
at System.Threading.ExecutionContext.RunInternal (System.Threading.ExecutionContext executionContext, System.Threading.ContextCallback callback, System.Object state, System.Boolean preserveSyncCtx) [0x00071] in <2dfe84a36ef4410ca18642993b51b799>:0
at System.Threading.ExecutionContext.Run (System.Threading.ExecutionContext executionContext, System.Threading.ContextCallback callback, System.Object state, System.Boolean preserveSyncCtx) [0x00000] in <2dfe84a36ef4410ca18642993b51b799>:0
at System.Threading.ExecutionContext.Run (System.Threading.ExecutionContext executionContext, System.Threading.ContextCallback callback, System.Object state) [0x0002b] in <2dfe84a36ef4410ca18642993b51b799>:0
at System.Threading.ThreadHelper.ThreadStart () [0x00008] in <2dfe84a36ef4410ca18642993b51b799>:0
[ERROR] FATAL UNHANDLED EXCEPTION: System.TypeInitializationException: The type initializer for 'System.Console' threw an exception. ---> System.TypeInitializationException: The type initializer for 'System.ConsoleDriver' threw an exception. ---> System.Exception: Magic number is wrong: 542
at System.TermInfoReader.ReadHeader (System.Byte[] buffer, System.Int32& position) [0x00028] in <2dfe84a36ef4410ca18642993b51b799>:0
at System.TermInfoReader..ctor (System.String term, System.String filename) [0x0005f] in <2dfe84a36ef4410ca18642993b51b799>:0
at System.TermInfoDriver..ctor (System.String term) [0x00055] in <2dfe84a36ef4410ca18642993b51b799>:0
at System.ConsoleDriver.CreateTermInfoDriver (System.String term) [0x00000] in <2dfe84a36ef4410ca18642993b51b799>:0
at System.ConsoleDriver..cctor () [0x0004d] in <2dfe84a36ef4410ca18642993b51b799>:0
--- End of inner exception stack trace ---
at System.Console.SetupStreams (System.Text.Encoding inputEncoding, System.Text.Encoding outputEncoding) [0x00007] in <2dfe84a36ef4410ca18642993b51b799>:0
at System.Console..cctor () [0x0008e] in <2dfe84a36ef4410ca18642993b51b799>:0
--- End of inner exception stack trace ---
at System.Windows.Forms.XplatUIX11.HandleError (System.IntPtr display, System.Windows.Forms.XErrorEvent& error_event) [0x0009a] in <620961265dcd4ef2bef9e70169cb6e5a>:0
at (wrapper managed-to-native) System.Windows.Forms.XplatUIX11.XPending(intptr)
at System.Windows.Forms.XplatUIX11.UpdateMessageQueue (System.Windows.Forms.XEventQueue queue, System.Boolean allowIdle) [0x00166] in <620961265dcd4ef2bef9e70169cb6e5a>:0
at System.Windows.Forms.XplatUIX11.UpdateMessageQueue (System.Windows.Forms.XEventQueue queue) [0x00000] in <620961265dcd4ef2bef9e70169cb6e5a>:0
at System.Windows.Forms.XplatUIX11.GetMessage (System.Object queue_id, System.Windows.Forms.MSG& msg, System.IntPtr handle, System.Int32 wFilterMin, System.Int32 wFilterMax) [0x0001c] in <620961265dcd4ef2bef9e70169cb6e5a>:0
at System.Windows.Forms.XplatUI.GetMessage (System.Object queue_id, System.Windows.Forms.MSG& msg, System.IntPtr hWnd, System.Int32 wFilterMin, System.Int32 wFilterMax) [0x00000] in <620961265dcd4ef2bef9e70169cb6e5a>:0
at System.Windows.Forms.Application.RunLoop (System.Boolean Modal, System.Windows.Forms.ApplicationContext context) [0x00331] in <620961265dcd4ef2bef9e70169cb6e5a>:0
at System.Windows.Forms.Application.Run (System.Windows.Forms.ApplicationContext context) [0x00011] in <620961265dcd4ef2bef9e70169cb6e5a>:0
at System.Windows.Forms.Application.Run (System.Windows.Forms.Form mainForm) [0x00006] in <620961265dcd4ef2bef9e70169cb6e5a>:0
at .. () [0x0000a] in <2b5e52884bc94eee85ddd10306fe74aa>:0
at System.Threading.ThreadHelper.ThreadStart_Context (System.Object state) [0x00014] in <2dfe84a36ef4410ca18642993b51b799>:0
at System.Threading.ExecutionContext.RunInternal (System.Threading.ExecutionContext executionContext, System.Threading.ContextCallback callback, System.Object state, System.Boolean preserveSyncCtx) [0x00071] in <2dfe84a36ef4410ca18642993b51b799>:0
at System.Threading.ExecutionContext.Run (System.Threading.ExecutionContext executionContext, System.Threading.ContextCallback callback, System.Object state, System.Boolean preserveSyncCtx) [0x00000] in <2dfe84a36ef4410ca18642993b51b799>:0
at System.Threading.ExecutionContext.Run (System.Threading.ExecutionContext executionContext, System.Threading.ContextCallback callback, System.Object state) [0x0002b] in <2dfe84a36ef4410ca18642993b51b799>:0
at System.Threading.ThreadHelper.ThreadStart () [0x00008] in <2dfe84a36ef4410ca18642993b51b799>:0

#16 Posted: 2018/4/8 16:47:24
Andrey Ivashov

Andrey Ivashov

2,315 likes in 3,949 posts.

Group: Super Administrator

Wrote

In regards to the previous error, i've tried installing cups with a pdf but haven't completed it yet.

anyway 6671 gives an even larger exception notification


It looks like this is a Mono issue fixed several days ago. Please see here for a workaround: https://github.com/mono/mono/issues/6752
1 users liked this post
tomracing 2018/4/9 15:49:00
#17 Posted: 2018/4/8 19:48:24
Jean Giraud

Jean Giraud

983 likes in 6,866 posts.

Group: User

Wrote

A message like "element assignment is only possible for empty or matrix objects" would help. I am not aware of other situations where such an assignment might fail, thus this message could be used by default in failing element assignments.


=========================
"element assignment is only possible for empty or matrix objects" ... I like it
"can not calculate" is much more real because there is nothing to calculate.
If some wish list would ask for Mathematica style zillions error messages,
that will not replace reading the Smath Handbook.
"for loop can not index a constant"
"not a scalar assignment" [typical Mathcad style]
As it looks, the matter was to replicate a value.

Replicate.PNG



#18 Posted: 2018/4/9 15:50:28
tomracing

tomracing

8 likes in 16 posts.

Group: User

Wrote


It looks like this is a Mono issue fixed several days ago. Please see here for a workaround: https://github.com/mono/mono/issues/6752



thanks! indeed xterm solved it and also the application link in menu opens smath without issues.
#19 Posted: 2018/4/10 22:44:44
Ruben Sidranski

Ruben Sidranski

17 likes in 463 posts.

Group: User

Andrey,
Last plugin issue was fixed with this AppVersion 0.99.6671. I am now wondering if this caused an issue with the X-Y plugin. I posted a bug report there, but wanted to bring this to your attention
Wrote

UPDATE: Plugin opens fine on 0.99.6661 portable version

#20 Posted: 2018/4/11 15:15:01
Andrey Ivashov

Andrey Ivashov

2,315 likes in 3,949 posts.

Group: Super Administrator

Wrote

I posted a bug report there, but wanted to bring this to your attention


Can't reproduce this issue. Dialog opens correctly for me.

UPDATE: I see you found a reason and described it here: https://en.smath.info/forum/yaf_postsm47855_-XY-plot-region--dialog-prompted-on-missing-screen-lock-the-program.aspx#post47855
Not an issue of SMath Studio. Thanks.
  • New Posts
  • No New Posts