09/25/2021, 01:20 AM
(09/24/2021, 06:27 PM)EmberĀ Edison Wrote:(05/12/2021, 04:31 AM)JmsNxn Wrote: I've e-mailed sheldonison, but I'm getting the feeling he's super busy. I've scoured throughout the internet looking for help on this. I asked a question on stackoverflow. And now I'm asking this question here.
How do you plot complex valued functions in Pari-GP? Particularly; I mean, how do you create hue plots using Pari-GP? Is there something stupid I'm missing here?
I've got my Pari-gp code as good as I can get it at this point (there are still some jumps which occur because Pari is always choosing the principal branch; but in limited cases everything is working).
Do I make an array of values and use the colour plot function somehow? I'm fairly confused. I'm just wondering how Sheldon produces his graphs in Pari; and I feel I'm missing something stupid..?
Any help is greatly appreciated...
All of this is reminding me of why I dropped my major from computer science years ago. I god damn hate coding (unless it's theory, of course).
Regards, James
I calculated the value of the function by Pari-GP and then imported the value into Mathematica to export the image.
As I mentioned before, I wouldn't have switched to Pari-GP if MMA didn't have very poor support for large number functions.
This also has the good thing that if I want to make a super high resolution image, I can do it in parallel and support breakpoints. (By fully manual parallel scheduling, of course)
The color scheme I use is Hue[(Abs@rawdata+Pi)/(2 Pi), 1/(1+0.3 Arg@rawdata), 1 - 1/(1.1+5 Arg@rawdata)]. This makes the color scheme of the images I draw look "opposite".
https://upload.wikimedia.org/wikipedia/c...e_to_1.gif
https://upload.wikimedia.org/wikipedia/c...number.gif
https://upload.wikimedia.org/wikipedia/c...10%5E6.gif
https://upload.wikimedia.org/wikipedia/c...29%3De.gif
Woahhhh, those are really cool!

