Newbie question

37 views
Skip to first unread message

Fausto A. A. Barbuto

unread,
Jan 28, 2019, 7:25:31 AM1/28/19
to mathics-users

Hello,

I'm a newbie to Mathics and I wonder what's wrong with the statement below:

mset = Compile[{{d, _Complex}}, Module[{z = d, n = 0}, While[Abs[z] < maxsize && n < maxiter, z = z ^ (1.5) + c; n++]; n]];

It throws the following error(?) message:

Compile::invar:

Variable _Complex should be {symbol, type} annotation.


Any help will be much appreciated! Thanks!


Fausto



Reply all
Reply to author
Forward
0 new messages