C++ program for generatin complex map in EPS format
#1
This is code based on user's Kouznetsov: conto.cin, ado.cin

Basically You compile it via c++ like (in Makefile):
c++ -o cmap cmap.cc libfparser.cc -lm

It generates EPS file (like PDF) with complex map (constant levels, real=red, imag=blue, modulo=green) for given function.

You pass real range, imag range, number of grid lines, levels to draw etc.
You also give function name (last argument) as literal (put it in ' ' or " ")
There is mine function parser included (all functions are compelx)
so You can pass for example:
'sin(x)' or 'exp(exp(x*2)-log(x)' or 'i^x' or '(3+2*i)^(1/x^3)' etc.

There are example scripts how to call program (see files *.sh).
For example:
./cmap 'out.eps' 500 500 -4 4 -4 4 8 8 -10 -10 0 10 10 20 -2 2 .1 -2 2 .1 0 4 .1 1 1 1 'log(log(x))'
Also there are all options commented in cmap.cc in main() function and eps_cont() function
libfparser.h and libfparser.cc are my function parser files, see libfparser.h to see which functions are supported (by sin(x) I mean complex sine function of course).

Files ado.cc and conto.cc are just renamed ado.cin and conto.cin from TORI webpage (by Kouznetsov)

You may find it useful (I've used ado.cin and conto.cin - because the're available for all and autor allows to use them), I've added function parser and added all parameters to control what area to draw, what levels, cut off values etc - see details in cmap.cc

Ihope someone find it usefull - examples in *.sh files are generating some nice fractals).

Of course You can do anything with this code - it's all free and available for all without any licence.

Best Regards.


Attached Files
.zip   cmap.zip (Size: 33.23 KB / Downloads: 818)
Fuji GSW690III
Nikon D3, Nikkors 14-24/2.8, 24/1.4, 35/2, 50/1.4, 85/1.4, 135/2, 80-200/2.8
Reply


Possibly Related Threads…
Thread Author Replies Views Last Post
Wink new fatou.gp program sheldonison 33 77,183 07/10/2022, 02:23 AM
Last Post: Catullus
  The beta method program JmsNxn 0 2,120 02/25/2022, 03:05 AM
Last Post: JmsNxn
  My new ABEL_L.gp program JmsNxn 13 14,506 10/06/2021, 07:18 PM
Last Post: Ember Edison
  Natural complex tetration program + video MorgothV8 1 7,215 04/27/2018, 07:54 PM
Last Post: MorgothV8
  Mathematica program for tetration based on the series with q-binomial coefficients Vladimir Reshetnikov 0 5,839 01/13/2017, 10:51 PM
Last Post: Vladimir Reshetnikov
  complex base tetration program sheldonison 23 94,426 10/26/2016, 10:02 AM
Last Post: Gottfried
  Green Eggs and HAM: Tetration for ALL bases, real and complex, now possible? mike3 27 82,961 07/02/2014, 10:13 PM
Last Post: tommy1729
  "Kneser"/Riemann mapping method code for *complex* bases mike3 2 13,682 08/15/2011, 03:14 PM
Last Post: Gottfried
  fractional iteration with complex bases/a bit of progress Gottfried 1 7,732 07/21/2008, 10:58 PM
Last Post: Gottfried



Users browsing this thread: 1 Guest(s)