Cephes Math Library

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

#21 已发布: 2013/8/18 12:45:21
Radovan Omorjan

Radovan Omorjan

325个赞和1个踩,共2,052个帖子。

组: 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.07 KiB)已下载 1528 次。
When Sisyphus climbed to the top of a hill, they said: "Wrong boulder!"
1位用户喜欢此帖子
#22 已发布: 2013/8/18 13:53:53
Вячеслав Мезенцев

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

1,558个赞,共1,868个帖子。

组: 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 已发布: 2013/8/18 16:20:52
Martin Kraska

Martin Kraska

1,362个赞,共2,276个帖子。

组: 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.

Technische Mechanik mit SMath Studio: https://link.springer.com/book/10.1007/978-3-658-50592-9
1位用户喜欢此帖子
#24 已发布: 2013/8/18 22:55:36
Вячеслав Мезенцев

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

1,558个赞,共1,868个帖子。

组: 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位用户喜欢此帖子
Martin Kraska 2013/8/19 10:40:00
#25 已发布: 2013/8/19 10:39:19
Martin Kraska

Martin Kraska

1,362个赞,共2,276个帖子。

组: Moderator

Ok, I did this (and removed EFI).

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

显示剧透



and the log file has the contents:

显示剧透


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:

显示剧透


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.

Technische Mechanik mit SMath Studio: https://link.springer.com/book/10.1007/978-3-658-50592-9
1位用户喜欢此帖子
#26 已发布: 2016/9/11 14:02:10
Вячеслав Мезенцев

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

1,558个赞,共1,868个帖子。

组: 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 已发布: 2016/9/12 06:14:28
Вячеслав Мезенцев

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

1,558个赞,共1,868个帖子。

组: Moderator

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

Cephes Math Library. Functions.pdf (41.73 KiB)已下载 3171 次。
Russia ☭ forever, Viacheslav N. Mezentsev
1位用户喜欢此帖子
frapuano 2016/9/12 08:26:00
#28 已发布: 2016/9/15 09:54:01
Вячеслав Мезенцев

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

1,558个赞,共1,868个帖子。

组: Moderator

Updated. At last both versions (x32 and x64) work well.
Russia ☭ forever, Viacheslav N. Mezentsev
1位用户喜欢此帖子
Davide Carpi 2016/9/15 10:16:00
#29 已发布: 2020/6/19 03:47:30
Вячеслав Мезенцев

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

1,558个赞,共1,868个帖子。

组: Moderator

Updated.

Changes:

- fixed error when freeing resources;
- refactored.
Russia ☭ forever, Viacheslav N. Mezentsev
1位用户喜欢此帖子
frapuano 2020/6/19 09:35:00
#30 已发布: 2021/7/9 23:42:23
overlord

overlord

600个赞,共1,381个帖子。

组: Moderator

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

Regards

cephes.png
#31 已发布: 2021/7/10 01:26:36
Вячеслав Мезенцев

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

1,558个赞,共1,868个帖子。

组: 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

未找到文件。 未找到文件。

Computing elliptic integrals by duplication (Carlson).pdf (672.24 KiB)已下载 8144 次。

Links:

1. Algorithm 577: Algorithms for Incomplete Elliptic Integrals (B. C. Carlson, Elaine M. Notis)
Russia ☭ forever, Viacheslav N. Mezentsev
1位用户喜欢此帖子
sergio 2021/7/10 04:57:00
  • 有新帖
  • 无新帖