File:LOGO Attractor.png

Original file(800 × 800 pixels, file size: 430 KB, MIME type: image/png)

Captions

Captions

Add a one-line explanation of what this file represents

Summary edit

Description
English: Peter de Jong Attractor made with POOL (http://www.pool.rnd.team), a dialect of LOGO programming language.

Formulas: x(n+1) = sin(a * y(n)) - cos(b * x(n)) y(n+1) = sin(c * x(n)) - cos(d * y(n))

Parameters:

a = -1.164; b = 1.41; c = -1.42; d = -1.6;
Polski: Atraktor Peter de Jong utworzony w POOL (http://www.pool.rnd.team), dialekcie języka programowania LOGO.

Formuła przekształcenia punktu: x(n+1) = sin(a * y(n)) - cos(b * x(n)) y(n+1) = sin(c * x(n)) - cos(d * y(n))

Wartości parametrów:

a = -1.164; b = 1.41; c = -1.42; d = -1.6;
Date
Source Own work
Author Rob su

Licensing edit

I, the copyright holder of this work, hereby publish it under the following license:
w:en:Creative Commons
attribution share alike
This file is licensed under the Creative Commons Attribution-Share Alike 4.0 International license.
You are free:
  • to share – to copy, distribute and transmit the work
  • to remix – to adapt the work
Under the following conditions:
  • attribution – You must give appropriate credit, provide a link to the license, and indicate if changes were made. You may do so in any reasonable manner, but not in any way that suggests the licensor endorses you or your use.
  • share alike – If you remix, transform, or build upon the material, you must distribute your contributions under the same or compatible license as the original.

Source code (LOGO: en, pl) edit

;Sample POOL code, you may use it, modify it, and distribute it under the GPL license.
;Authors: R&D Independent Team
;Source: http://www.pool.rnd.team

;1. Adjust these values to change the attractor shape.
let "t {-1.164 1.41 -1.42 -1.6}

;2. Experiment with different formulas of f and g functions.
to f
  op (radsin :t,1 * :xy,2) - (radcos :t,2 * :xy,1)
end

to g
  op (radsin :t,3 * :xy,1) - (radcos :t,4 * :xy,2)
end


let "xy {0 0}
to next ;step on the attractor
  let "ny g
  :xy,1 := f
  :xy,2 := :ny
  op :xy
end

window ht
;3. Change the scale to fit your screen size.
:pool_cfg,"scale_x := 200
:pool_cfg,"scale_y := 200

;4. Adjust the loop length.
repeat 2000000 [putpointat next {0 0 0 4}]
print "done

File history

Click on a date/time to view the file as it appeared at that time.

Date/TimeThumbnailDimensionsUserComment
current09:28, 25 March 2015Thumbnail for version as of 09:28, 25 March 2015800 × 800 (430 KB)Rob su (talk | contribs)User created page with UploadWizard

There are no pages that use this file.

Metadata