Axel Vogt

5936 Reputation

20 Badges

20 years, 247 days
Munich, Bavaria, Germany

MaplePrimes Activity


These are questions asked by Axel Vogt

I have the following: arrays arrC of type double in a C code and a fct in Maple allowing arrM of type Array(datatype = float[8]) as argument. I want to evaluate the fct using arrC as input. For that one can either use 'MapleAssignIndexed' (looping through the elements if there are not very much of them), or 'RTableCreate' (details omitted). Both seem to need some overhead which costs time. Is there a way to use something like the C function memcpy to copy the array to Maple (assuming the correct space can be supplied) to speed it up? Does one have to work with byte arrays instead for that - or is it
How do I integrate a purely numerical function, say f = evalhf @ sin,
and using the NAG routines only ?
The following seems to run endless (WinME, M10.02 classical interface): Int(2.9992571251988*(kappa-.89988751406074)/Pi* exp(3.3571035419740-12.0624756920228897*ln(kappa))* BesselK(1,26.1571648648044217*(.13147587176957e-1+(-.57683186342273e-1+ln(kappa))^2)^(1/2))/ (.13147587176957e-1+(-.57683186342273e-1+ln(kappa))^2)^(1/2)/kappa, kappa = .89988751406074 .. 4.0); evalf(%); I did not want to massage it by hand (as the fct may change and actually I want the upperbound to be infinity). The reason can not be the slow numerics for Bessels (as an external DLL with brute callback gives the result slowly,
That kills my Maple ( M10.02 on WinME)

restart; _EnvExplicit:= true;
Eq:=0 = 'mu + delta*sqrt(alpha^2-Theta^2) - sqrt(alpha^2-(Theta+1)^2) ';
[solve(Eq, Theta)]:
sols:=%;

giving the system message:

CWMAPLE verursachte einen Fehler durch eine ungültige Seite
in Modul CWMAPLE.EXE bei 017f:00459d0b.
Register: blablabla

If I prevent output by "sols:=%:" (using a double point) it is ok and one
sees that it would produce ~ 5000 pages ( = length(sols)/80/60 ).

Could be that one reason?
I want to compile the appended code snippet from HelpExamples.c into a DLL using MSVC6 and added C:\Programme\Maple10\extern\include as well as C:\Programme\Maple10\bin.win as pathes to the project. After compiling I get the following error message for linking: Linking... Creating library Release/MapleAPI.lib and object Release/MapleAPI.exp MapleAPI.obj : error LNK2001: unresolved external symbol __imp__ToMapleString@8 It seems that i miss an import library - what should I do (except having a break for some more coffee)? Sh... upload does not work for 2 kB - exceeds maximum file size
First 9 10 11 12 Page 11 of 12