![]() |
|
Creating Hue Plots in Pari-GP - Printable Version +- Tetration Forum (https://tetrationforum.org) +-- Forum: Tetration and Related Topics (https://tetrationforum.org/forumdisplay.php?fid=1) +--- Forum: Computation (https://tetrationforum.org/forumdisplay.php?fid=8) +--- Thread: Creating Hue Plots in Pari-GP (/showthread.php?tid=1322) |
Creating Hue Plots in Pari-GP - JmsNxn - 05/12/2021 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 RE: Creating Hue Plots in Pari-GP - Gottfried - 05/12/2021 Hi James, I don't know at the moment, whether in Sheldon's "fatou.gp" there is also that picture_out routine for creating coloured images for complex coordinates. I remember a similar routine provided by tet-forum member Mike. It takes a matrix of complex values and writes a *.ppm file (some basic graphic-file-format) with rgb-values. File should be findable in appendices of tetration forum. This is a version from 2010, don't know whether there are updates in the forum available. Kind regards- Gottfried PHP Code: /* ============================================================================= RE: Creating Hue Plots in Pari-GP - JmsNxn - 05/13/2021 Thanks so much, Gottfried! This works perfectly; albeit, it's a little slow. I'm going to try and make some graphs now. Regards, James I don't think this is the same program Sheldon uses, but god damned is this better. Here's my solution to the Abel equation with \( \log(2) \) multiplier over \( -1 \le \Re(z) \le 4 \) and \( 0.5 \le \Im(z) \le 2.5 \): EDIT: This is about 8 digit precision; it may dip to 4 occasionally, but it hovers around 12; so let's just say 8. RE: Creating Hue Plots in Pari-GP - Ember Edison - 09/24/2021 (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. 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/commons/b/ba/Pathological_phenomenon_for_fatou_tetration_when_abs%28base%29_close_to_1.gif https://upload.wikimedia.org/wikipedia/commons/1/1e/Complex_Kneser%27s_Tetration_when_base_is_a_real_number.gif https://upload.wikimedia.org/wikipedia/commons/0/07/Complex_Kneser%27s_Tetration_when_abs%28base%29%3D10%5E6.gif https://upload.wikimedia.org/wikipedia/commons/6/62/Complex_Kneser%27s_Tetration_when_abs%28base%29%3De.gif ps:I am so sorry. is Hue[(Arg@rawdata+Pi)/(2 Pi), 1/(1+0.3 Log@Abs@rawdata), 1 - 1/(1.1+5 Log@Abs@rawdata)]. RE: Creating Hue Plots in Pari-GP - JmsNxn - 09/25/2021 (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. Woahhhh, those are really cool! |