Cephes Math Library

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

#21 Posted: 8/18/2013 12:45:21 PM
Radovan Omorjan

Radovan Omorjan

325 likes in 2052 posts.

Group: Moderator

Wrote

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!


Just to join Martin and to thank uni for his efforts

Here is my log file. It seems it is the same like Martin's. Unfortunately, some functions do not work, they are present in the list (like Bessel, Hankel, Airy) but they do not work.

Regards,
Radovan

log.txt (32 KiB) downloaded 63 time(s).
When Sisyphus climbed to the top of a hill, they said: "Wrong boulder!"
1 users liked this post
#22 Posted: 8/18/2013 1:53:53 PM
Вячеслав Мезенцев

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

1402 likes in 1708 posts.

Group: Moderator

Thank you Martin, thank you Radovan.

It looks like the case was in the debug version of the plugin. Some functions do not work due to the fact that I have modified the code. Earlier, I used already compiled library. This is the first time I compiled it myself.

I will look for errors and make corrections. Please try 64bit version too.
Russia ☭ forever, Viacheslav N. Mezentsev
#23 Posted: 8/18/2013 4:20:52 PM
Martin Kraska

Martin Kraska

1222 likes in 2150 posts.

Group: Moderator

Wrote

Please try 64bit version too.



I had to remove the EFI plugin in order to run the 64bit version, here is the cephes log

18.08.2013 22:03:49 [ERROR] [Plugin.Initialize()] ist keine zulässige Win32-Anwendung. (Ausnahme von HRESULT: 0x800700C1)
18.08.2013 22:03:49 [INFO ] [Plugin.Initialize()] Successfully. 0 functions loaded.

This is what the error message says:

Informationen über das Aufrufen von JIT-Debuggen
anstelle dieses Dialogfelds finden Sie am Ende dieser Meldung.

************** Ausnahmetext **************
System.BadImageFormatException: Die Datei oder Assembly "file:///D:\Programme\SMath\SMathStudio_Desktop.exe" oder eine Abhängigkeit davon wurde nicht gefunden. Es wurde versucht, eine Datei mit einem falschen Format zu laden.
Dateiname: "file:///D:\Programme\SMath\SMathStudio_Desktop.exe"
bei System.Reflection.Assembly._nLoad(AssemblyName fileName, String codeBase, Evidence assemblySecurity, Assembly locationHint, StackCrawlMark& stackMark, Boolean throwOnFileNotFound, Boolean forIntrospection)
bei System.Reflection.Assembly.InternalLoad(AssemblyName assemblyRef, Evidence assemblySecurity, StackCrawlMark& stackMark, Boolean forIntrospection)
bei System.Reflection.Assembly.LoadFrom(String assemblyFile)
bei ..(String , String )
bei ..(Object , EventArgs )
bei System.Windows.Forms.Timer.OnTick(EventArgs e)
bei System.Windows.Forms.Timer.TimerNativeWindow.WndProc(Message& m)
bei System.Windows.Forms.NativeWindow.Callback(IntPtr hWnd, Int32 msg, IntPtr wparam, IntPtr lparam)

WRN: Protokollierung der Assemblybindung ist AUS.
Sie können die Protokollierung der Assemblybindungsfehler aktivieren, indem Sie den Registrierungswert [HKLM\Software\Microsoft\Fusion!EnableLog] (DWORD) auf 1 festlegen.
Hinweis: Die Protokollierung der Assemblybindungsfehler führt zu einer gewissen Leistungseinbuße.
Sie können dieses Feature deaktivieren, indem Sie den Registrierungswert [HKLM\Software\Microsoft\Fusion!EnableLog] entfernen.



************** Geladene Assemblys **************
mscorlib
Assembly-Version: 2.0.0.0.
Win32-Version: 2.0.50727.5472 (Win7SP1GDR.050727-5400).
CodeBase: file:///C:/Windows/Microsoft.NET/Framework64/v2.0.50727/mscorlib.dll.

SMathStudio_Desktop
Assembly-Version: 0.96.4909.6806.
Win32-Version: 1.1.26.0.
CodeBase: file:///D:/Programme/SMath/SMathStudio_Desktop_64.exe.

System.Windows.Forms
Assembly-Version: 2.0.0.0.
Win32-Version: 2.0.50727.5468 (Win7SP1GDR.050727-5400).
CodeBase: file:///C:/Windows/assembly/GAC_MSIL/System.Windows.Forms/2.0.0.0__b77a5c561934e089/System.Windows.Forms.dll.

System
Assembly-Version: 2.0.0.0.
Win32-Version: 2.0.50727.5467 (Win7SP1GDR.050727-5400).
CodeBase: file:///C:/Windows/assembly/GAC_MSIL/System/2.0.0.0__b77a5c561934e089/System.dll.

Martin Kraska Pre-configured portable distribution of SMath Studio: https://en.smath.info/wiki/SMath%20with%20Plugins.ashx
1 users liked this post
Вячеслав Мезенцев 8/18/2013 10:44:00 PM
#24 Posted: 8/18/2013 10:55:36 PM
Вячеслав Мезенцев

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

1402 likes in 1708 posts.

Group: Moderator

Martin, try to remove mathlib.dll from the plugin folder. When the plugin is loading it tries to find the library. If not found, then it unloads library from the resources depending on the type of platform.
Russia ☭ forever, Viacheslav N. Mezentsev
1 users liked this post
Martin Kraska 8/19/2013 10:40:00 AM
#25 Posted: 8/19/2013 10:39:19 AM
Martin Kraska

Martin Kraska

1222 likes in 2150 posts.

Group: Moderator

Ok, I did this (and removed EFI).

Upon start of the 64bit version I get an error message.

Show Spoiler



and the log file has the contents:

Show Spoiler


I can recover from the error message with the button [continue].
Doing something simple like abs(i)= leads to german yellow error box saying something like "not a valid Win32 application, exception HRESULT: 0x800700C1"

Loading the cephes test sheet leads to a new error message, saying:

Show Spoiler


When I recover via [continue], then SMath tries to display the plugin loader, but fails to list what plugin would be required and then freezes (kill by Program manager required).

In order to go back to normal use of the 32bit version I have to remove the mathlib.dll again. Thus, for the normal user (unaware of plugin dirs and dlls) it is not safe to switch versions from time to time.
Also, you cannot run instances of SMath with different bitness at a time if they have the same settings directory.

Martin Kraska Pre-configured portable distribution of SMath Studio: https://en.smath.info/wiki/SMath%20with%20Plugins.ashx
1 users liked this post
#26 Posted: 9/11/2016 2:02:10 PM
Вячеслав Мезенцев

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

1402 likes in 1708 posts.

Group: Moderator

Updated (project now can be build using Release Manager), but something wrong with Release Manager. Plugin can't load functions from the mathlib. Local version works fine.
Russia ☭ forever, Viacheslav N. Mezentsev
#27 Posted: 9/12/2016 6:14:28 AM
Вячеслав Мезенцев

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

1402 likes in 1708 posts.

Group: Moderator

Updated (Release Manager corrected, thanks to Andrey). Seems x64 version works.

Cephes Math Library. Functions.pdf (41 KiB) downloaded 251 time(s).
Russia ☭ forever, Viacheslav N. Mezentsev
1 users liked this post
frapuano 9/12/2016 8:26:00 AM
#28 Posted: 9/15/2016 9:54:01 AM
Вячеслав Мезенцев

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

1402 likes in 1708 posts.

Group: Moderator

Updated. At last both versions (x32 and x64) work well.
Russia ☭ forever, Viacheslav N. Mezentsev
1 users liked this post
Davide Carpi 9/15/2016 10:16:00 AM
#29 Posted: 6/19/2020 3:47:30 AM
Вячеслав Мезенцев

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

1402 likes in 1708 posts.

Group: Moderator

Updated.

Changes:

- fixed error when freeing resources;
- refactored.
Russia ☭ forever, Viacheslav N. Mezentsev
1 users liked this post
frapuano 6/19/2020 9:35:00 AM
#30 Posted: 7/9/2021 11:42:23 PM
overlord

overlord

547 likes in 1330 posts.

Group: Moderator

Plugin doesn't seem to evaluate functions.
Gives "domain: [#]" error, don't know the meaning.

Regards

cephes.png
#31 Posted: 7/10/2021 1:26:36 AM
Вячеслав Мезенцев

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

1402 likes in 1708 posts.

Group: Moderator

SMath Studio compatibility

Plugin updated.

Changes:
- refactored.

This error means that the second argument was out of bounds. The function checks the value of the arguments before calling.

2021-07-10_09-25-56.png

File not found. File not found.

Computing elliptic integrals by duplication (Carlson).pdf (672 KiB) downloaded 33 time(s).

Links:

1. Algorithm 577: Algorithms for Incomplete Elliptic Integrals (B. C. Carlson, Elaine M. Notis)
Russia ☭ forever, Viacheslav N. Mezentsev
1 users liked this post
sergio 7/10/2021 4:57:00 AM
  • New Posts New Posts
  • No New Posts No New Posts