Welcome Guest! To enable all features please Login. New Registrations are disabled.

Notification

Icon
Error

Login


2 Pages12>
Options
Go to last post Go to first unread
Offline uni  
#1 Posted : 17 August 2013 17:13:25(UTC)
uni


Rank: Advanced Member

Groups: Registered, Advanced Member
Joined: 10/11/2010(UTC)
Posts: 1,493
Man
Russian Federation

Was thanked: 1274 time(s) in 745 post(s)
Cephes Mathematical Library

SMath Studio compatibility Platform SMath Viewer compatibility mono compatibility Extension page Sources


Functions list:
H1v(), H2v(), Jvc(), Yvc(), Ivc(), Kvc(), jsph(), ysph(), h1sph(), h2sph(), Ai(), Bi(), Aip(), Bip(), struvec(),
H1e()
, H2e(), Jve(), Yve(), Ive(), Kve(), Aie(), Bie(), Aipe(), Bipe(),
lg()
, rgam(), binomial(), Beta1(), lbeta1(), psic(), igamma(), igammac(), igammai(), ibeta(), ibetai(),
hyp1c1()
, hyp2c0(), hyp2c1(), hyp1c2(), hyp3c0(),
LegendreE()
, LegendreF(), LegendreEc(), LegendreEc1(), LegendreKc(), LegendreKc1(), sn(), cn(), dn(), phi(),
LegendreP()
, LegendrePc(), LegendrePc1(), Rf(), Rd(), Rj(),
Dawson()
, FresnelC(), FresnelS(), dilog(), Riezeta(), Riezeta2(),
expint()
, sinint(), cosint(), sinhint(), coshint(), Plm(), Qlm(), pnorm(), Ylm(), Yl(),
arrot()
, signum(), csgn(), sfact(), mask().




Note. This is the same math library that was previously in the mcadefi plugin (mathlib.dll). So you need to update mcadefi plugin to avoid duplication of functions.

Cephes Math Library. Functions.pdf (42kb) downloaded 196 time(s).

Links:

1. Cephes Mathematical Library.
2. Collected Algorithms (CALGO).

Edited by user 10 July 2021 07:29:05(UTC)  | Reason: Not specified

File Attachment(s):
Cephes Math Library. Functions.sm (60kb) downloaded 228 time(s).
Cephes Math Library. Functions.pdf (76kb) downloaded 317 time(s).
Cephes Math Library. Functions.txt (9kb) downloaded 158 time(s).
Russia ☭ forever
Viacheslav N. Mezentsev

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

Offline mkraska  
#2 Posted : 17 August 2013 17:41:21(UTC)
mkraska


Rank: Advanced Member

Groups: Registered
Joined: 15/04/2012(UTC)
Posts: 1,980
Germany

Was thanked: 1120 time(s) in 718 post(s)
None of the functions is visible after updating EFI and Cephes Math.
Martin Kraska

Pre-configured portable distribution of SMath Studio: https://smath.com/wiki/SMath_with_Plugins.ashx
Offline uni  
#3 Posted : 17 August 2013 17:49:40(UTC)
uni


Rank: Advanced Member

Groups: Registered, Advanced Member
Joined: 10/11/2010(UTC)
Posts: 1,493
Man
Russian Federation

Was thanked: 1274 time(s) in 745 post(s)
64-bit platform? This plugin must support the 64-bit platform, but I'm not been able to test. If so, it is possible to restore functions by manual copying mathlib.dll.

I tried to compile the 64-bit version of the library from sources and apparently it didn't work.
Russia ☭ forever
Viacheslav N. Mezentsev
Offline mkraska  
#4 Posted : 17 August 2013 18:01:07(UTC)
mkraska


Rank: Advanced Member

Groups: Registered
Joined: 15/04/2012(UTC)
Posts: 1,980
Germany

Was thanked: 1120 time(s) in 718 post(s)
Originally Posted by: uni Go to Quoted Post
64-bit platform? This plugin must support the 64-bit platform, but I'm not been able to test. If so, it is possible to restore functions by manual copying mathlib.dll.

I tried to compile the 64-bit version of the library from sources and apparently it didn't work.

Yes, 64bit. Did not yet try the inofficial distribution with the 32bit-tagged exe.

In order to undo an update, one can go to the plugin dir and change the text in the config.ini to point to an older subdirectory. To find the plugin dir, users might try the attached link sheet.
EDIT: This is not reliable. You must delete the plugin dirs for Cephes and efi (use the attached sheet to find efi and use the time stamp to find cephes)
Then re-install the userefi sub-directory contents in the efi subdirectory from the inofficial distribution.

Edited by user 17 August 2013 20:15:29(UTC)  | Reason: Not specified

File Attachment(s):
Plugin index.sm (25kb) downloaded 78 time(s).
Martin Kraska

Pre-configured portable distribution of SMath Studio: https://smath.com/wiki/SMath_with_Plugins.ashx
thanks 1 user thanked mkraska for this useful post.
on 17/08/2013(UTC)
Offline omorr  
#5 Posted : 17 August 2013 19:44:41(UTC)
omorr


Rank: Administration

Groups: Registered, Advanced Member
Joined: 23/06/2009(UTC)
Posts: 1,740
Man
Serbia

Was thanked: 318 time(s) in 268 post(s)
Originally Posted by: mkraska Go to Quoted Post
Originally Posted by: uni Go to Quoted Post
64-bit platform? This plugin must support the 64-bit platform, but I'm not been able to test. If so, it is possible to restore functions by manual copying mathlib.dll.

I tried to compile the 64-bit version of the library from sources and apparently it didn't work.

Yes, 64bit. Did not yet try the inofficial distribution with the 32bit-tagged exe.

In order to undo an update, one can go to the plugin dir and change the text in the config.ini to point to an older subdirectory. To find the plugin dir, users might try the attached link sheet.


Hmm...I tried the unofficial 32-bit tagged SMath by Martin on one 32bit computer (did not try the regular one yet). I can not get to see the functions in the function list. I even tried to delete both extension folders (EFI and Cephes)and reinstalled them again on by one. No success yet. I might make some mistake, though.

Regards,
Radovan

[EDIT] Tried once more, and unfortunately I can not get all these functions back now Sad

Edited by user 17 August 2013 19:57:25(UTC)  | Reason: Not specified

omorr attached the following image(s):
matlib.png
When Sisyphus climbed to the top of a hill, they said: "Wrong boulder!"
Offline sija  
#6 Posted : 17 August 2013 20:00:43(UTC)
sija


Rank: Advanced Member

Groups: Registered
Joined: 19/04/2013(UTC)
Posts: 46
Man
Poland
Location: Podkarpackie, Poland

Was thanked: 7 time(s) in 7 post(s)
Radovan,

I got the same problem like you. I also do not know what to do. I think the best way will be to wait for Uni until he dissolve the problem and give us the new corrected plugin.

The best regards,
Janusz
Offline mkraska  
#7 Posted : 17 August 2013 20:12:22(UTC)
mkraska


Rank: Advanced Member

Groups: Registered
Joined: 15/04/2012(UTC)
Posts: 1,980
Germany

Was thanked: 1120 time(s) in 718 post(s)
The roll back procedure described by me above did not work reliably. There were side effects to other plugins, e.g. Random(1) did not work any more.

The problem for me was solved by
- deleting the cephes and the efi subdirectory,
- re-installing the efi from the extension manager
- copy all dll's from the userefi dir in the inofficial distribution to the re-installed plugin.

The test sheet with the special functions is ok.
Martin Kraska

Pre-configured portable distribution of SMath Studio: https://smath.com/wiki/SMath_with_Plugins.ashx
thanks 1 user thanked mkraska for this useful post.
on 17/08/2013(UTC)
Offline uni  
#8 Posted : 17 August 2013 20:52:30(UTC)
uni


Rank: Advanced Member

Groups: Registered, Advanced Member
Joined: 10/11/2010(UTC)
Posts: 1,493
Man
Russian Federation

Was thanked: 1274 time(s) in 745 post(s)
Updated. Logfile added (log.txt). Please, try again.
Russia ☭ forever
Viacheslav N. Mezentsev
Offline mkraska  
#9 Posted : 17 August 2013 21:10:43(UTC)
mkraska


Rank: Advanced Member

Groups: Registered
Joined: 15/04/2012(UTC)
Posts: 1,980
Germany

Was thanked: 1120 time(s) in 718 post(s)
I downloaded the cephes update and removed mathlib.dll from the userefi subdir.

log contents is:

17.08.2013 20:04:41 [INFO ] [Plugin::Initialize()]: Is64Bit() = 32
17.08.2013 20:04:41 [ERROR] [Plugin::Initialize()]: Die Datei oder Assembly "mathlib, Version=1.0.4977.42823, Culture=neutral, PublicKeyToken=null" oder eine Abhängigkeit davon wurde nicht gefunden. Diese Anwendung konnte nicht gestartet werden, da die Side-by-Side-Konfiguration ungültig ist. Weitere Informationen finden Sie im Anwendungsereignisprotokoll. Weitere Details können auch mit dem Befehlszeilentool sxstrace.exe angezeigt werden. (Ausnahme von HRESULT: 0x800736B1)

Not only cephes does not work but some of Davides plugins do not work as well. (Random, FindRoots, Diag...)

Edit: Roll back by deleting the cephes dir and re-installing mathlib.dll
Edit: Plugin index now contains link to cephes dir

Edited by user 17 August 2013 21:24:55(UTC)  | Reason: Not specified

File Attachment(s):
Plugin index.sm (26kb) downloaded 50 time(s).
Martin Kraska

Pre-configured portable distribution of SMath Studio: https://smath.com/wiki/SMath_with_Plugins.ashx
thanks 1 user thanked mkraska for this useful post.
on 18/08/2013(UTC)
Offline mkraska  
#10 Posted : 17 August 2013 21:45:57(UTC)
mkraska


Rank: Advanced Member

Groups: Registered
Joined: 15/04/2012(UTC)
Posts: 1,980
Germany

Was thanked: 1120 time(s) in 718 post(s)
I'd recommend to password-protect plugins at least immediately after publication and post the password in the forum. Then testing is possible but occasional use by curious users is prevented. This also applies for plugins that are not intended for normal use (like the templates).
Martin Kraska

Pre-configured portable distribution of SMath Studio: https://smath.com/wiki/SMath_with_Plugins.ashx
thanks 1 user thanked mkraska for this useful post.
on 18/08/2013(UTC)
Offline omorr  
#11 Posted : 17 August 2013 21:55:47(UTC)
omorr


Rank: Administration

Groups: Registered, Advanced Member
Joined: 23/06/2009(UTC)
Posts: 1,740
Man
Serbia

Was thanked: 318 time(s) in 268 post(s)
It is still not working for me (32-bit computer). I tried both unofficial and official and now mathlib is not working. Tried to install, re-install, delete plugin folders. This is from log.txt cephes (similar to Martin's)

8/17/2013 8:39:14 PM [ERROR] [Plugin::Initialize()]: Could not load file or assembly 'mathlib, Version=1.0.4977.42823, Culture=neutral, PublicKeyToken=null' or one of its dependencies. The application has failed to start because its side-by-side configuration is incorrect. Please see the application event log or use the command-line sxstrace.exe tool for more detail. (Exception from HRESULT: 0x800736B1)

Regards,
Radovan
When Sisyphus climbed to the top of a hill, they said: "Wrong boulder!"
thanks 1 user thanked omorr for this useful post.
on 18/08/2013(UTC)
Offline uni  
#12 Posted : 18 August 2013 06:06:24(UTC)
uni


Rank: Advanced Member

Groups: Registered, Advanced Member
Joined: 10/11/2010(UTC)
Posts: 1,493
Man
Russian Federation

Was thanked: 1274 time(s) in 745 post(s)
Updated. Password: test
It's not as easy as I thought before. Please, try again.

Try to install Microsoft Visual C++ 2010 Redistributable Package (x86) or Microsoft Visual C++ 2010 Redistributable Package (x64).
Quote:
The Microsoft Visual C++ 2010 Redistributable Package installs runtime components of Visual C++ Libraries required to run applications developed with Visual C++ on a computer that does not have Visual C++ 2010 installed.
Russia ☭ forever
Viacheslav N. Mezentsev
thanks 1 user thanked uni for this useful post.
on 18/08/2013(UTC)
Offline omorr  
#13 Posted : 18 August 2013 09:35:38(UTC)
omorr


Rank: Administration

Groups: Registered, Advanced Member
Joined: 23/06/2009(UTC)
Posts: 1,740
Man
Serbia

Was thanked: 318 time(s) in 268 post(s)
Hello uni,

I tried it again, installed the VC++2010 Redistributable as well, but no success.
As I could see from the log.txt - there is only one additional line about successful initialize - but no functions loaded. I do not know what is the influence of the present "not working" condition but it seems that lots of files do not work anymore - see the pictures please

Regards,
Radovan

Edited by user 18 August 2013 09:42:27(UTC)  | Reason: Not specified

omorr attached the following image(s):
mathlib.png
mathlib2.png
When Sisyphus climbed to the top of a hill, they said: "Wrong boulder!"
thanks 1 user thanked omorr for this useful post.
on 18/08/2013(UTC)
Offline mkraska  
#14 Posted : 18 August 2013 09:55:53(UTC)
mkraska


Rank: Advanced Member

Groups: Registered
Joined: 15/04/2012(UTC)
Posts: 1,980
Germany

Was thanked: 1120 time(s) in 718 post(s)
First test run without Redistributable package:

what works:
- Cephes math (may be due to not deleting mathlib from EFI subdir)
- Checkbox
- Clear()
- EFI (steam tables)
- Hyperlink
- Imageregion
- MathcadFileAccess
- maple()

what does not work:
- 3D plot region (incl. CreateMesh)
- plotting of al_airy (display of values works)
- Combobox
- UoM()
- ODEsolver
- even built-in functions like rows()
- FindRoot
- statistical tools
- xy plot region
- zedgraph region

log contents:
18.08.2013 08:28:54 [ERROR] [Plugin.Initialize()] Die Datei oder Assembly "mathlib, Version=1.0.4978.15952, Culture=neutral, PublicKeyToken=null" oder eine Abhängigkeit davon wurde nicht gefunden. Diese Anwendung konnte nicht gestartet werden, da die Side-by-Side-Konfiguration ungültig ist. Weitere Informationen finden Sie im Anwendungsereignisprotokoll. Weitere Details können auch mit dem Befehlszeilentool sxstrace.exe angezeigt werden. (Ausnahme von HRESULT: 0x800736B1)
18.08.2013 08:28:54 [INFO ] [Plugin.Initialize()] Successfully. 0 functions loaded.
18.08.2013 08:46:01 [ERROR] [Plugin.Initialize()] Die Datei oder Assembly "mathlib, Version=1.0.4978.15952, Culture=neutral, PublicKeyToken=null" oder eine Abhängigkeit davon wurde nicht gefunden. Diese Anwendung konnte nicht gestartet werden, da die Side-by-Side-Konfiguration ungültig ist. Weitere Informationen finden Sie im Anwendungsereignisprotokoll. Weitere Details können auch mit dem Befehlszeilentool sxstrace.exe angezeigt werden. (Ausnahme von HRESULT: 0x800736B1)
18.08.2013 08:46:01 [INFO ] [Plugin.Initialize()] Successfully. 0 functions loaded.

Edited by user 18 August 2013 09:58:14(UTC)  | Reason: Not specified

Martin Kraska

Pre-configured portable distribution of SMath Studio: https://smath.com/wiki/SMath_with_Plugins.ashx
thanks 1 user thanked mkraska for this useful post.
on 18/08/2013(UTC)
Offline mkraska  
#15 Posted : 18 August 2013 10:09:11(UTC)
mkraska


Rank: Advanced Member

Groups: Registered
Joined: 15/04/2012(UTC)
Posts: 1,980
Germany

Was thanked: 1120 time(s) in 718 post(s)


According to system control I have Visual C++ Redistributable 2005 installed. The 2010 installer fails and complains that a newer version is installed. Actually I don't know the dependencies and therefore I am hesitating to intervene.
Martin Kraska

Pre-configured portable distribution of SMath Studio: https://smath.com/wiki/SMath_with_Plugins.ashx
Offline uni  
#16 Posted : 18 August 2013 15:47:14(UTC)
uni


Rank: Advanced Member

Groups: Registered, Advanced Member
Joined: 10/11/2010(UTC)
Posts: 1,493
Man
Russian Federation

Was thanked: 1274 time(s) in 745 post(s)
I don't know why, but the plugin uses libraries from VS2008: msvcm90.dll (release version) and msvcm90d.dll (debug version). The project is compiled in debug configuration, as in the release it doesn't launch. So, I think you need to try to install Microsoft Visual C++ 2008 Redistributable Package (x86) or Microsoft Visual C++ 2008 Redistributable Package (x64) instead of VC++ 2010.

I have both programs: VS2008 and VS2010, so everything works. Cephes consists of very old sources, written in C (I tried to fix the code so that it looks like C++). Compile them is difficult. VS tries to connect the old library, which is not on your machine.

As for the other plugins, I think it is in violation of the logic of the chain. Symbolic part of this plugin is also included in the work, but because the functions are not loaded it returns an error (false) somewhere in the call chain. I'm not sure about this, here it is necessary to consult with Andrey.

The ODESolvers project configured in the same way and it works. Therefore, I think the problem is in the old C code that I was not able to put in a modern look. I would like to compile the source code for the 64-bit platform too.
Russia ☭ forever
Viacheslav N. Mezentsev
Offline mkraska  
#17 Posted : 18 August 2013 16:14:40(UTC)
mkraska


Rank: Advanced Member

Groups: Registered
Joined: 15/04/2012(UTC)
Posts: 1,980
Germany

Was thanked: 1120 time(s) in 718 post(s)
Originally Posted by: uni Go to Quoted Post
I don't know why, but the plugin uses libraries from VS2008: msvcm90.dll (release version) and msvcm90d.dll (debug version). The project is compiled in debug configuration, as in the release it doesn't launch. So, I think you need to try to install Microsoft Visual C++ 2008 Redistributable Package (x86) or Microsoft Visual C++ 2008 Redistributable Package (x64) instead of VC++ 2010.

Sorry, install of VC++ 2008 (went without problems) did not help.

Martin Kraska

Pre-configured portable distribution of SMath Studio: https://smath.com/wiki/SMath_with_Plugins.ashx
Offline uni  
#18 Posted : 18 August 2013 16:39:13(UTC)
uni


Rank: Advanced Member

Groups: Registered, Advanced Member
Joined: 10/11/2010(UTC)
Posts: 1,493
Man
Russian Federation

Was thanked: 1274 time(s) in 745 post(s)
Updated. Well, the last time. I compiled plugin in the release configuration. Maybe this version will work. And show me the log file.

Edited by user 18 August 2013 16:43:21(UTC)  | Reason: Not specified

Russia ☭ forever
Viacheslav N. Mezentsev
thanks 1 user thanked uni for this useful post.
on 18/08/2013(UTC)
Offline kilele  
#19 Posted : 18 August 2013 16:41:52(UTC)
kilele


Rank: Advanced Member

Groups: Registered
Joined: 30/03/2011(UTC)
Posts: 393

Was thanked: 132 time(s) in 113 post(s)
@Uni
I don't know if you could make use of Interfacing C/C++ and Python with SWIG
who knows if it may be possible to glue all this with ironpython and smath Good

This reminds me of a way to convert java libraries to .NET assemblies by means of the tool ikvm.
There are lots of interesting code in java that would be nice to use in SMath.

Edit :

Swig supports C# as well

Edited by user 19 August 2013 01:25:46(UTC)  | Reason: Not specified

Offline mkraska  
#20 Posted : 18 August 2013 16:59:49(UTC)
mkraska


Rank: Advanced Member

Groups: Registered
Joined: 15/04/2012(UTC)
Posts: 1,980
Germany

Was thanked: 1120 time(s) in 718 post(s)
Originally Posted by: uni Go to Quoted Post
Updated. Well, the last time. I compiled plugin in the release configuration. Maybe this version will work. And show me the log file.


Much better now, yet still problems. Part of the functions now work and no side effenct so far.
Thank you for keep fighting!
File Attachment(s):
cephes.pdf (66kb) downloaded 88 time(s).
log.txt (31kb) downloaded 49 time(s).
Martin Kraska

Pre-configured portable distribution of SMath Studio: https://smath.com/wiki/SMath_with_Plugins.ashx
thanks 2 users thanked mkraska for this useful post.
on 18/08/2013(UTC),  on 18/08/2013(UTC)
Users browsing this topic
2 Pages12>
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.