Thread Rating:
  • 0 Vote(s) - 0 Average
  • 1
  • 2
  • 3
  • 4
  • 5
C++ program for generatin complex map in EPS format
This is code based on user's Kouznetsov: conto.cin, ado.cin

Basically You compile it via c++ like (in Makefile):
c++ -o cmap -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 in main() function and eps_cont() function
libfparser.h and 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 and 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

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 (Size: 33.23 KB / Downloads: 311)
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

Messages In This Thread
C++ program for generatin complex map in EPS format - by MorgothV8 - 09/17/2014, 04:14 PM

Possibly Related Threads...
Thread Author Replies Views Last Post
Wink new program sheldonison 20 21,821 02/11/2020, 04:47 PM
Last Post: sheldonison
  Natural complex tetration program + video MorgothV8 1 2,002 04/27/2018, 07:54 PM
Last Post: MorgothV8
  Mathematica program for tetration based on the series with q-binomial coefficients Vladimir Reshetnikov 0 2,172 01/13/2017, 10:51 PM
Last Post: Vladimir Reshetnikov
  complex base tetration program sheldonison 23 42,957 10/26/2016, 10:02 AM
Last Post: Gottfried
  Green Eggs and HAM: Tetration for ALL bases, real and complex, now possible? mike3 27 36,893 07/02/2014, 10:13 PM
Last Post: tommy1729
  "Kneser"/Riemann mapping method code for *complex* bases mike3 2 6,952 08/15/2011, 03:14 PM
Last Post: Gottfried
  fractional iteration with complex bases/a bit of progress Gottfried 1 3,991 07/21/2008, 10:58 PM
Last Post: Gottfried

Users browsing this thread: 1 Guest(s)