Cephes Math Library

Cephes Math Library - Adds 78 special functions (Cephes Math Library 2.4, CALGO). - Messages

#1 Posted: 8/17/2013 10:13:25 AM
Вячеслав Мезенцев

Вячеслав Мезенцев

1402 likes in 1708 posts.

Group: Moderator

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().



Show Spoiler


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 (41 KiB) downloaded 249 time(s).

Links:

1. Cephes Mathematical Library.
2. Collected Algorithms (CALGO).
Cephes Math Library. Functions.txt (8 KiB) downloaded 174 time(s).
Russia ☭ forever, Viacheslav N. Mezentsev
#2 Posted: 8/17/2013 10:41:21 AM
Martin Kraska

Martin Kraska

1222 likes in 2150 posts.

Group: Moderator

None of the functions is visible after updating EFI and Cephes Math.
Martin Kraska Pre-configured portable distribution of SMath Studio: https://en.smath.info/wiki/SMath%20with%20Plugins.ashx
#3 Posted: 8/17/2013 10:49:40 AM
Вячеслав Мезенцев

Вячеслав Мезенцев

1402 likes in 1708 posts.

Group: Moderator

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
#4 Posted: 8/17/2013 11:01:07 AM
Martin Kraska

Martin Kraska

1222 likes in 2150 posts.

Group: Moderator

Wrote

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.
Plugin index.sm (24 KiB) downloaded 100 time(s).
Martin Kraska Pre-configured portable distribution of SMath Studio: https://en.smath.info/wiki/SMath%20with%20Plugins.ashx
1 users liked this post
#5 Posted: 8/17/2013 12:44:41 PM
Radovan Omorjan

Radovan Omorjan

325 likes in 2052 posts.

Group: Moderator

Wrote

Wrote

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
matlib.png
When Sisyphus climbed to the top of a hill, they said: "Wrong boulder!"
#6 Posted: 8/17/2013 1:00:43 PM
Janusz

Janusz

7 likes in 48 posts.

Group: User

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
#7 Posted: 8/17/2013 1:12:22 PM
Martin Kraska

Martin Kraska

1222 likes in 2150 posts.

Group: Moderator

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://en.smath.info/wiki/SMath%20with%20Plugins.ashx
1 users liked this post
#8 Posted: 8/17/2013 1:52:30 PM
Вячеслав Мезенцев

Вячеслав Мезенцев

1402 likes in 1708 posts.

Group: Moderator

Updated. Logfile added (log.txt). Please, try again.
Russia ☭ forever, Viacheslav N. Mezentsev
#9 Posted: 8/17/2013 2:10:43 PM
Martin Kraska

Martin Kraska

1222 likes in 2150 posts.

Group: Moderator

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
Plugin index.sm (25 KiB) downloaded 69 time(s).
Martin Kraska Pre-configured portable distribution of SMath Studio: https://en.smath.info/wiki/SMath%20with%20Plugins.ashx
1 users liked this post
Вячеслав Мезенцев 8/17/2013 11:07:00 PM
#10 Posted: 8/17/2013 2:45:57 PM
Martin Kraska

Martin Kraska

1222 likes in 2150 posts.

Group: Moderator

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://en.smath.info/wiki/SMath%20with%20Plugins.ashx
1 users liked this post
Вячеслав Мезенцев 8/17/2013 11:07:00 PM
#11 Posted: 8/17/2013 2:55:47 PM
Radovan Omorjan

Radovan Omorjan

325 likes in 2052 posts.

Group: Moderator

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!"
1 users liked this post
Вячеслав Мезенцев 8/17/2013 11:07:00 PM
#12 Posted: 8/17/2013 11:06:24 PM
Вячеслав Мезенцев

Вячеслав Мезенцев

1402 likes in 1708 posts.

Group: Moderator

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
1 users liked this post
Martin Kraska 8/18/2013 2:32:00 AM
#13 Posted: 8/18/2013 2:35:38 AM
Radovan Omorjan

Radovan Omorjan

325 likes in 2052 posts.

Group: Moderator

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
mathlib2.png
When Sisyphus climbed to the top of a hill, they said: "Wrong boulder!"
1 users liked this post
#14 Posted: 8/18/2013 2:55:53 AM
Martin Kraska

Martin Kraska

1222 likes in 2150 posts.

Group: Moderator

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.
Martin Kraska Pre-configured portable distribution of SMath Studio: https://en.smath.info/wiki/SMath%20with%20Plugins.ashx
1 users liked this post
#15 Posted: 8/18/2013 3:09:11 AM
Martin Kraska

Martin Kraska

1222 likes in 2150 posts.

Group: Moderator

Wrote

Try to install Microsoft Visual C++ 2010 Redistributable Package (x86) or Microsoft Visual C++ 2010 Redistributable Package (x64).



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://en.smath.info/wiki/SMath%20with%20Plugins.ashx
#16 Posted: 8/18/2013 8:47:14 AM
Вячеслав Мезенцев

Вячеслав Мезенцев

1402 likes in 1708 posts.

Group: Moderator

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
#17 Posted: 8/18/2013 9:14:40 AM
Martin Kraska

Martin Kraska

1222 likes in 2150 posts.

Group: Moderator

Wrote

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://en.smath.info/wiki/SMath%20with%20Plugins.ashx
#18 Posted: 8/18/2013 9:39:13 AM
Вячеслав Мезенцев

Вячеслав Мезенцев

1402 likes in 1708 posts.

Group: Moderator

Updated. Well, the last time. I compiled plugin in the release configuration. Maybe this version will work. And show me the log file.
Russia ☭ forever, Viacheslav N. Mezentsev
1 users liked this post
Martin Kraska 8/18/2013 10:04:00 AM
#19 Posted: 8/18/2013 9:41:52 AM
kilele

kilele

133 likes in 397 posts.

Group: User

@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

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
#20 Posted: 8/18/2013 9:59:49 AM
Martin Kraska

Martin Kraska

1222 likes in 2150 posts.

Group: Moderator

Wrote

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!
log.txt (30 KiB) downloaded 63 time(s).
Martin Kraska Pre-configured portable distribution of SMath Studio: https://en.smath.info/wiki/SMath%20with%20Plugins.ashx
2 users liked this post
Вячеслав Мезенцев 8/18/2013 10:09:00 AM, Radovan Omorjan 8/18/2013 12:39:00 PM
  • New Posts New Posts
  • No New Posts No New Posts