A PHP Error was encountered

Severity: 8192

Message: Function create_function() is deprecated

Filename: geshi/geshi.php

Line Number: 4698

Backtrace:

File: /home/httpd/vhosts/scratchbook.ch/geopaste.scratchbook.ch/application/libraries/geshi/geshi.php
Line: 4698
Function: _error_handler

File: /home/httpd/vhosts/scratchbook.ch/geopaste.scratchbook.ch/application/libraries/geshi/geshi.php
Line: 4621
Function: _optimize_regexp_list_tokens_to_string

File: /home/httpd/vhosts/scratchbook.ch/geopaste.scratchbook.ch/application/libraries/geshi/geshi.php
Line: 1655
Function: optimize_regexp_list

File: /home/httpd/vhosts/scratchbook.ch/geopaste.scratchbook.ch/application/libraries/geshi/geshi.php
Line: 2029
Function: optimize_keyword_group

File: /home/httpd/vhosts/scratchbook.ch/geopaste.scratchbook.ch/application/libraries/geshi/geshi.php
Line: 2168
Function: build_parse_cache

File: /home/httpd/vhosts/scratchbook.ch/geopaste.scratchbook.ch/application/libraries/Process.php
Line: 45
Function: parse_code

File: /home/httpd/vhosts/scratchbook.ch/geopaste.scratchbook.ch/application/models/Pastes.php
Line: 517
Function: syntax

File: /home/httpd/vhosts/scratchbook.ch/geopaste.scratchbook.ch/application/controllers/Main.php
Line: 693
Function: getPaste

File: /home/httpd/vhosts/scratchbook.ch/geopaste.scratchbook.ch/index.php
Line: 315
Function: require_once

fractals.py - Stikked
From Colorant Agouti, 5 Years ago, written in Python.
Embed
  1. #z² + c
  2. #
  3. #
  4. #c = 1 - grows to inf!
  5. #c = 0.5 - also, but slower
  6. #c = 0.1 - not growing to inf.
  7. #
  8. #
  9. #0² + 1 = 1
  10. #1² + 1 = 2
  11. #2² + 1 = 5.
  12.  
  13.  
  14. for l in range(80):
  15.     #print(l)
  16.     c = -2.5 + l*0.04j - 2j
  17.     #print(c)
  18.  
  19.     for k in range(200):
  20.         z = 0
  21.  
  22.         for i in range(10):
  23.             z = z*z + c
  24.  
  25.         if abs(z) < 100:
  26.             print("o", end="")
  27.         else:
  28.             print(".", end="")
  29.  
  30.         c = c + 0.02
  31.  
  32.     print("")
  33.  
  34.  
  35. # INVENT A NEW NUMBER
  36. # CALLING "j"
  37. # j*j = -1
  38.  
  39. #print(1j ** 2)
  40.