Custom Functions plugin - functions: extended Max and Min, Unit of Measurement, Order of Magnitude - Messages

It seems that the function at() isn't executed.
Materials E7-6.sm (10 KiB) downloaded 50 time(s).
OS: Microsoft Windows NT 6.1.7601 Service Pack 1; Windows 7 Professional Service Pack 1, 64-bit
Screen: 1920x1080 px, 96x96 dpi, 96 GP.CDPI
Localization: language=GER; dec.symbol=
Framework: CLR 4.0.30319.42000
installed versions:
v2.0.50727 2.0.50727.5420 SP2
v3.0 3.0.30729.5420 SP2
v3.5 3.5.30729.5420 SP1
v4
Client 4.7.02053
Full 4.7.02053
v4.0
Client 4.0.0.0
Plugins:
- [AppDir] Area Region - 0.99.7219.26345
- [AppDir] HTMLFileType - 1.14.7219.26345
- [AppDir] ImageFileType - 1.11.7219.26345
- [AppDir] Math Region - 0.99.7219.26345
- [AppDir] PictureRegion - 1.10.7219.26345
- [AppDir][DISABLED] PieChartRegion.dll - 1.0.7097.30323
- [AppDir] PlotRegion - 1.11.7219.26345
- [AppDir] SMath Viewer Files Plugin - 1.1.7219.26385
- [AppDir] SMathFileType - 1.11.7219.26345
- [AppDir] SpecialFunctions - 1.12.7219.26345
- [AppDir] SpecialFunctions - 1.12.7219.26345
- [AppDir] StandardToolboxButtons - 1.1.7219.26345
- [AppDir] TextRegion - 1.11.7219.26345
- [AppDir] XMCDFileType - 1.12.7219.26345
- [UserDir] ALGLIB® - numerical analysis library - 1.0.7175.33522
- [UserDir] Checkbox Region - 1.0.7097.23234
- [UserDir] CheckBoxList Region - 1.0.7097.29767
- [UserDir] Combobox Region - 0.1.7097.23243
- [UserDir] ComboBoxList Region - 1.0.7097.29780
- [UserDir] Conditionally Formatted Label - 1.0.7100.19488
- [UserDir] Custom Functions - 1.1.7200.16172
- [UserDir] Custom Glyphs - 1.1.7200.16176
- [UserDir] Data Exchange - 1.1.6858.3747
- [UserDir] Development Tools - 1.0.6974.21980
- [UserDir] DotNumerics - 1.1.7166.24796
- [UserDir] EFI for SMath Studio - 1.0.7165.40625
- [UserDir] Excel Files Plugin - 1.3.7100.21176
- [UserDir] Excel Input-Output Functions - 1.0.7165.25287
- [UserDir] FFTPACK - 1.0.6825.4311
- [UserDir] FIR Filter Design - 1.0.7165.39130
- [UserDir] GNU Scientific Library (GSL) - 1.0.7165.41516
- [UserDir] GPC Wrapper - 1.0.6824.41024
- [UserDir] Hyperlink Region - 1.0.7105.20106
- [UserDir] Image Region - 2.99.7100.21996
- [UserDir] include - 0.2.7165.16642
- [UserDir] Intel ODE Solver Library - 0.1.7164.40868
- [UserDir] Mathcad File Access Functions - 1.0.6983.32721
- [UserDir] MaximaPlugin - 1.98.7100.23756
- [UserDir] Modeller Region - 1.0.7100.42534
- [UserDir] MS Chart Region - 0.1.7164.40842
- [UserDir] Nonlinear Solvers - 1.1.7097.23301
- [UserDir] Numeric Up-Down Region - 1.0.7100.21168
- [UserDir] ODE Solvers - 0.2.7155.3312
- [UserDir] ODE Solvers - 0.2.7155.3312
- [UserDir] PDF Files Plugin - 1.0.7097.27694
- [UserDir] RadioButtonList Region - 1.0.7097.30330
- [UserDir] Run - 0.2.6975.39277
- [UserDir] Slider Region - 1.0.7100.22009
- [UserDir] Snapshot Region - 1.0.7100.22017
- [UserDir] Statistical Tools - 1.0.6824.32561
- [UserDir] Table Region - 0.2.7097.29803
- [UserDir] TeX File Type - 0.2.7097.30337
- [UserDir] Text Region Utilities - 0.4.7200.15920
- [UserDir] Writer Region - 0.22.7200.15900
- [UserDir] XlsxImportExport - 1.3.6996.39330
- [UserDir] X-Y Plot Region (JXCharts) - 0.2.7198.38915
- [UserDir] X-Y Plot Region (JXCharts) - 0.2.7198.38915
edit: fixed in later versions SS
1. Usage of Assign(), a function made for this purpose in the Maxima plugin.
2. Usage of the substitution function at() from custom functions plugin, which by syntax should be good for the purpose.
It turns out that it makes a difference whether the Solve function is inside a line block or not. In the latter case, at() comes up with a strange error message.
Solve-3.sm (20 KiB) downloaded 51 time(s).

- Unknowns() improved to don't match integration variable of int(4);
Unknowns.sm (18 KiB) downloaded 47 time(s).
- [SS-4651] at() assignment improved to avoid unexpected substitutions when variables are given as replacements;
EDIT
either this should works correctly now:
WroteIn the attached sheet, the conversion of solution results into definitions is demonstrated in two ways:
1. Usage of Assign(), a function made for this purpose in the Maxima plugin.
2. Usage of the substitution function at() from custom functions plugin, which by syntax should be good for the purpose.
It turns out that it makes a difference whether the Solve function is inside a line block or not. In the latter case, at() comes up with a strange error message.
Thanks,
Jason
WroteDavide, thanks for developing this plugin; I use several function in here regularly. One that I just tried using that could be very useful for me is the Ceil function. In engineering we often want to always round up, so this would fit that bill well. However, it seems to only round up with respect to the base unit instead of the unit actually used. So instead of rounding a result up to the next inch (or millimeter), it rounds to the next foot (or meter). Would it be possible to account for the unit in that evaluation somehow?
Thanks,
Jason
Such a function would definitely need the target unit as input. In order to use this for display automatically, the plugin would need to suppress back-simplification to SI, which might require "Optimization None" on user side. A comprehensible operator form might put a placeholder for the unit at the index position to the lower left
ceil2.sm (3 KiB) downloaded 39 time(s).
Since you are using a specialized output with the brackets and unit subscript, I would like to suggest ceil2 using a superscript for the unit. floor2 keeps the current subscript. Visually, this will help us "SEE" what was used in context to the equation/function
WroteDavide,
Since you are using a specialized output with the brackets and unit subscript, I would like to suggest ceil2 using a superscript for the unit. floor2 keeps the current subscript. Visually, this will help us "SEE" what was used in context to the equation/function
I get the point but seems to me that might be confusing when exponentiations are involved

Also, the "base" could be a variable, or a simple number
The var2str from custom functions plugin has problems with the new release:
appVersion(4)="0.99.7808.230"
var2str(1.7,2)="1,70"
var2str(1.7,"0.00"
="0002E02"
var2str(1.7,"0,00"
="0002C02"
- fixed encoding/decoding issues;
- refactoring;

-
New Posts
-
No New Posts