User:AnatolV: Difference between revisions

From Rosetta Code
Content added Content deleted
m (adding 1 item R)
m (added: in PARI/GP)
 
(7 intermediate revisions by the same user not shown)
Line 3: Line 3:
created more then 30 websites (partially or in full). In addition, I've always been
created more then 30 websites (partially or in full). In addition, I've always been
a scientist interested in AI. NT, etc.
a scientist interested in AI. NT, etc.
I've already contributed here on RC more than 80 solutions.
I've already contributed here on RC more than 90 solutions.


{{mylangbegin|Deeply Historical}}
{{mylangbegin|Deeply Historical}}
Line 34: Line 34:
;'''My Rosettacode Wiki contributions'''
;'''My Rosettacode Wiki contributions'''
==Summary of contributions==
==Summary of contributions==
* Tasks: 3 (coming after file upload would be allowed again).
* Tasks: 2 (2 are coming after file upload would be allowed again).
* PARI/GP solutions: 46 (but read above).
* PARI/GP solutions: 49 (but read above).
* JavaScript solutions: 6 (read above).
* JavaScript solutions: 12 (read above).
* Gnuplot solutions: 11 (read above).
* Gnuplot solutions: 11 (read above).
* R solutions: 19 (read above).
* R solutions: 21 (read above).
* Discussions (just a few)
* Discussions (just a few)


==My Rosettacode Wiki Tasks (Coming soon)==
==My Rosettacode Wiki Tasks==
===Task1===
===Kronecker product===
====Kronecker product [[Kronecker_product| RC page]]====
===Task2===
===Kronecker product based fractals===
===Task3===
====Kronecker product based fractals [[Kronecker_product_based_fractals| RC page]]====
===Tasks 3-4 (Coming soon)===
== My Rosettacode Wiki Solutions==
== My Rosettacode Wiki Solutions==
===Helper functions for Rosettacode Wiki contributions===
===Helper functions for Rosettacode Wiki contributions===
====R Helper Functions [[User:AnatolV/Helper_Functions| Helper Functions page]]====
====R Helper Functions [[User:AnatolV/Helper_Functions| Helper Functions page]]====
====JavaScript Helper Functions [[User:AnatolV/Helper_Functions| Helper Functions page]]====
====PARI/GP Helper Functions [[User:AnatolV/Helper_Functions| Helper Functions page]]====
====PARI/GP Helper Functions [[User:AnatolV/Helper_Functions| Helper Functions page]]====


===Sequences, etc.===
===Sequences, etc.===
====Ludic numbers v.1,2 [[Ludic_numbers#PARI.2FGP| RC page]]====
====Ludic numbers in PARI/GP v.1,2 [[Ludic_numbers#PARI.2FGP| RC page]]====
====Hailstone sequence [[Hailstone_sequence#Version_.232.| RC page]]====
====Hailstone sequence in PARI/GP [[Hailstone_sequence#Version_.232.| RC page]]====
====Stern-Brocot sequence [[Stern-Brocot_sequence#PARI.2FGP| RC page]]====
====Stern-Brocot sequence in PARI/GP [[Stern-Brocot_sequence#PARI.2FGP| RC page]]====
====Stern-Brocot sequence in R [[Stern-Brocot_sequence#R| RC page]]====
====Stern-Brocot sequence in R [[Stern-Brocot_sequence#R| RC page]]====
====Fractran [[Fractran#PARI.2FGP| RC page]]====
====Fractran in PARI/GP [[Fractran#PARI.2FGP| RC page]]====
====Convert seconds to compound duration [[Convert_seconds_to_compound_duration#PARI.2FGP| RC page]]====
====Convert seconds to compound duration in PARI/GP [[Convert_seconds_to_compound_duration#PARI.2FGP| RC page]]====
====Towers of Hanoi [[Towers_of_Hanoi#PARI.2FGP| RC page]]====
====Towers of Hanoi in PARI/GP [[Towers_of_Hanoi#PARI.2FGP| RC page]]====
====Terminal control/Ringing the terminal bell [[Terminal_control/Ringing_the_terminal_bell#PARI.2FGP| RC page]]====
====Terminal control/Ringing the terminal bell in PARI/GP [[Terminal_control/Ringing_the_terminal_bell#PARI.2FGP| RC page]]====
====Array map [[Array map#PARI.2FGP| RC page]]====
====Array map in PARI/GP [[Array map#PARI.2FGP| RC page]]====
====Bernoulli numbers in R [[Bernoulli_numbers#R| RC page]]====
====Bernoulli numbers in R [[Bernoulli_numbers#R| RC page]]====
====Proper divisors in R [[Proper_divisors#R| RC page]]====
====Proper divisors in R [[Proper_divisors#R| RC page]]====
====Abundant, deficient and perfect number classifications in R [[Abundant,_deficient_and_perfect_number_classifications#R| RC page]]====
====Abundant, deficient and perfect number classifications in R [[Abundant,_deficient_and_perfect_number_classifications#R| RC page]]====
====Faulhaber's formula [[Faulhaber%27s_formula#PARI.2FGP| RC page]]====
====Faulhaber's formula in PARI/GP [[Faulhaber%27s_formula#PARI.2FGP| RC page]]====
=====Versions #1 and #2.=====
=====Versions #1 and #2.=====
====Kronecker product in PARI/GP [[Kronecker_product#PARI.2FGP| RC page]]====
=====Versions #1 and #2.=====
====Kronecker product in JavaScript[[Kronecker_product#JavaScript| RC page]]====
=====Versions #1 and #2.=====

===String functions===
===String functions===
====Repeat a string [[Repeat_a_string#PARI.2FGP| RC page]]====
====Repeat a string in PARI/GP [[Repeat_a_string#PARI.2FGP| RC page]]====
====Reverse a string [[Reverse_a_string#PARI.2FGP| RC page]]====
====Reverse a string in PARI/GP [[Reverse_a_string#PARI.2FGP| RC page]]====
====Substring of a string [[Substring#PARI.2FGP| RC page]]====
====Substring of a string in PARI/GP [[Substring#PARI.2FGP| RC page]]====
====Tokenize a string v.1,2 [[Tokenize_a_string#PARI.2FGP| RC page]]====
====Tokenize a string in PARI/GP v.1,2 [[Tokenize_a_string#PARI.2FGP| RC page]]====
====Jaro distance [[Jaro_distance#PARI.2FGP| RC page]]====
====Jaro distance in PARI/GP [[Jaro_distance#PARI.2FGP| RC page]]====
====Levenshtein distance [[Levenshtein_distance#PARI.2FGP| RC page]]====
====Levenshtein distance in PARI/GP [[Levenshtein_distance#PARI.2FGP| RC page]]====
====CSV data manipulation [[CSV data manipulation#PARI.2FGP| RC page]]====
====CSV data manipulation in PARI/GP [[CSV data manipulation#PARI.2FGP| RC page]]====


===Fractals, trees and other plotting===
===Fractals, trees and other plotting===
====Draw a cuboid [[Draw_a_cuboid#PARI.2FGP| RC page]]====
====Draw a cuboid in PARI/GP [[Draw_a_cuboid#PARI.2FGP| RC page]]====
====Constrained random points on a circle in gnuplot [[Constrained_random_points_on_a_circle#gnuplot| RC page]]====
====Constrained random points on a circle in gnuplot [[Constrained_random_points_on_a_circle#gnuplot| RC page]]====
====Barnsley fern fractal [[Barnsley_fern#PARI.2FGP| RC page]]====
====Barnsley fern fractal in PARI/GP [[Barnsley_fern#PARI.2FGP| RC page]]====
====Barnsley fern fractal in JavaScript [[Barnsley_fern#JavaScript| RC page]]====
====Barnsley fern fractal in JavaScript [[Barnsley_fern#JavaScript| RC page]]====
====Barnsley fern fractal in R [[Barnsley_fern#R| RC page]]====
====Barnsley fern fractal in R [[Barnsley_fern#R| RC page]]====
====Barnsley fern fractal in gnuplot [[Barnsley_fern#gnuplot| RC page]]====
====Barnsley fern fractal in gnuplot [[Barnsley_fern#gnuplot| RC page]]====
====Sierpinski carpet fractal [[Sierpinski_carpet#PARI.2FGP| RC page]]====
====Sierpinski carpet fractal in PARI/GP [[Sierpinski_carpet#PARI.2FGP| RC page]]====
====Sierpinski carpet fractal in gnuplot [[Sierpinski_carpet#gnuplot| RC page]]====
====Sierpinski carpet fractal in gnuplot [[Sierpinski_carpet#gnuplot| RC page]]====
=====Version #1.=====
=====Version #1.=====
=====Versions #2 and #3.=====
=====Versions #2 and #3.=====
====Sierpinski triangle fractal [[Sierpinski_triangle/Graphical#PARI.2FGP| RC page]]====
====Sierpinski carpet fractal in R [[Sierpinski_carpet#R| RC page]]====
=====Versions #1 and #2.=====
====Sierpinski triangle fractal in PARI/GP [[Sierpinski_triangle/Graphical#PARI.2FGP| RC page]]====
====Sierpinski triangle in R [[Sierpinski_triangle/Graphical#R| RC page]]====
====Sierpinski triangle in R [[Sierpinski_triangle/Graphical#R| RC page]]====
====Chaos Game (Sierpinski triangle) [[Chaos_Game#PARI.2FGP| RC page]]====
====Chaos Game (Sierpinski triangle) in PARI/GP [[Chaos_Game#PARI.2FGP| RC page]]====
====Chaos Game (Sierpinski triangle) in R [[Chaos_Game#R| RC page]]====
====Chaos Game (Sierpinski triangle) in R [[Chaos_Game#R| RC page]]====
====Chaos Game (Sierpinski triangle) in gnuplot [[Chaos_Game#gnuplot| RC page]]====
====Chaos Game (Sierpinski triangle) in gnuplot [[Chaos_Game#gnuplot| RC page]]====
====Sierpinski pentagon in JavaScript [[Sierpinski_pentagon#JavaScript| RC page]]====
====Sierpinski pentagon in JavaScript [[Sierpinski_pentagon#JavaScript| RC page]]====
====Dragon curve v.3 [[Dragon_curve#PARI.2FGP| RC page]]====
====Dragon curve v.3 in PARI/GP [[Dragon_curve#PARI.2FGP| RC page]]====
====Dragon curve in gnuplot [[Dragon_curve#gnuplot| RC page]]====
====Dragon curve in gnuplot [[Dragon_curve#gnuplot| RC page]]====
====Dragon curve in JavaScript [[Dragon_curve#JavaScript| RC page]]====
====Dragon curve in JavaScript [[Dragon_curve#JavaScript| RC page]]====
====Dragon curve in R v.#2 [[Dragon_curve#R| RC page]]====
====Dragon curve in R v.#2 [[Dragon_curve#R| RC page]]====
====The Archimedean spiral [[Archimedean_spiral#PARI.2FGP| RC page]]====
====The Archimedean spiral in PARI/GP [[Archimedean_spiral#PARI.2FGP| RC page]]====
====The Archimedean spiral in JavaScript [[Archimedean_spiral#JavaScript| RC page]]====
====The Archimedean spiral in JavaScript [[Archimedean_spiral#JavaScript| RC page]]====
====Polyspiral [[Polyspiral#PARI.2FGP| RC page]]====
====Polyspiral in PARI/GP [[Polyspiral#PARI.2FGP| RC page]]====
=====Plotting helper functions=====
=====Plotting helper functions=====
* Plot the line from x1,y1 to x2,y2.
* Plot the line from x1,y1 to x2,y2.
Line 111: Line 121:
=====Creating 2 animated gif-files.=====
=====Creating 2 animated gif-files.=====
=====Showing 2 animated gif-files.=====
=====Showing 2 animated gif-files.=====
====Ulam spiral [[Ulam_spiral_(for_primes)#PARI.2FGP| RC page]]====
====Polyspiral in JavaScript [[Polyspiral#JavaScript| RC page]]====
====Ulam spiral in PARI/GP [[Ulam_spiral_(for_primes)#PARI.2FGP| RC page]]====
====Ulam spiral in R [[Ulam_spiral_(for_primes)#R| RC page]]====
====Ulam spiral in R [[Ulam_spiral_(for_primes)#R| RC page]]====
====Fibonacci word/fractal v.1,2 [[Fibonacci_word/fractal#PARI.2FGP| RC page]]====
====Ulam spiral in JavaScript [[Ulam_spiral_(for_primes)#JavaScript| RC page]]====

====Fibonacci word/fractal in PARI/GP v.1,2 [[Fibonacci_word/fractal#PARI.2FGP| RC page]]====
====Fibonacci word/fractal in JavaScript [[Fibonacci_word/fractal#JavaScript| RC page]]====
====Fibonacci word/fractal in JavaScript [[Fibonacci_word/fractal#JavaScript| RC page]]====
====Fibonacci word/fractal in R [[Fibonacci_word/fractal#R| RC page]]====
====Fibonacci word/fractal in R [[Fibonacci_word/fractal#R| RC page]]====
Line 122: Line 135:
* Writing file fn containing X,Y coordinates from matrix mat.
* Writing file fn containing X,Y coordinates from matrix mat.
* Plotting from a file written by the wrtmat().
* Plotting from a file written by the wrtmat().
=====Brownian tree versions #1 - #4=====
=====Brownian tree in PARI/GP versions #1 - #4=====
* Version #1. Translated from AutoHotkey.
* Version #1. Translated from AutoHotkey.
* Version #2. Translated from Octave.
* Version #2. Translated from Octave.
Line 136: Line 149:
* plotv2(): Simple plotting using 2 vectors (dumped into ".dmp" file by plotmat()).
* plotv2(): Simple plotting using 2 vectors (dumped into ".dmp" file by plotmat()).
=====Brownian tree versions #1 - #4.=====
=====Brownian tree versions #1 - #4.=====
====Fractal tree [[Fractal_tree#PARI.2FGP| RC page]]====
====Fractal tree in PARI/GP [[Fractal_tree#PARI.2FGP| RC page]]====
====Fractal tree in R [[Fractal_tree#R| RC page]]====
====Fractal tree in R [[Fractal_tree#R| RC page]]====
====Pythagoras tree [[Pythagoras_tree#PARI.2FGP| RC page]]====
====Pythagoras tree in PARI/GP [[Pythagoras_tree#PARI.2FGP| RC page]]====
====Pythagoras tree in R [[Pythagoras_tree#R| RC page]]====
====Pythagoras tree in R [[Pythagoras_tree#R| RC page]]====
====Voronoi diagram v.2 in JavaScript [[Voronoi_diagram#JavaScript| RC page]]====
====Voronoi diagram v.2 in JavaScript [[Voronoi_diagram#JavaScript| RC page]]====
====Voronoi diagram in R [[Voronoi_diagram#R| RC page]]====
====Voronoi diagram in R [[Voronoi_diagram#R| RC page]]====
====Kronecker product based fractals in PARI/GP [[Kronecker_product_based_fractals#PARI.2FGP| RC page]]====
====Kronecker product based fractals in JavaScript[[Kronecker_product_based_fractals#JavaScript| RC page]]====
====Kronecker product based fractals in R [[Kronecker_product_based_fractals#R| RC page]]====

Latest revision as of 20:31, 14 January 2018

Hi, I'm Anatole V [Anatoly E. Voevudko, PhD], residing in the USA. My 1K bigger user page easy to find on OEIS Wiki. I was starting programming in the machine code for mainframe IBM 370. In last 2 decades I've created more then 30 websites (partially or in full). In addition, I've always been a scientist interested in AI. NT, etc. I've already contributed here on RC more than 90 solutions.

Deeply Historical
Language Proficiency
Machine code was advanced
Assembler was advanced
Fortran was advanced
PL/I was advanced
Clipper/XBase was advanced
Historical
Language Proficiency
ColdFusion was advanced
ASP/ASP.Net was advanced
VB/VB.Net was advanced
C/C++/C# was advanced
SQL/PL-SQL was advanced
Java was advanced
Still in current use
Language Proficiency
C/C# advanced
JavaScript advanced
PHP advanced
MySQL advanced
PARI/GP advanced
Gnuplot advanced
R advanced
My Rosettacode Wiki contributions

Summary of contributions

  • Tasks: 2 (2 are coming after file upload would be allowed again).
  • PARI/GP solutions: 49 (but read above).
  • JavaScript solutions: 12 (read above).
  • Gnuplot solutions: 11 (read above).
  • R solutions: 21 (read above).
  • Discussions (just a few)

My Rosettacode Wiki Tasks

Kronecker product

Kronecker product RC page

Kronecker product based fractals

Kronecker product based fractals RC page

Tasks 3-4 (Coming soon)

My Rosettacode Wiki Solutions

Helper functions for Rosettacode Wiki contributions

R Helper Functions Helper Functions page

JavaScript Helper Functions Helper Functions page

PARI/GP Helper Functions Helper Functions page

Sequences, etc.

Ludic numbers in PARI/GP v.1,2 RC page

Hailstone sequence in PARI/GP RC page

Stern-Brocot sequence in PARI/GP RC page

Stern-Brocot sequence in R RC page

Fractran in PARI/GP RC page

Convert seconds to compound duration in PARI/GP RC page

Towers of Hanoi in PARI/GP RC page

Terminal control/Ringing the terminal bell in PARI/GP RC page

Array map in PARI/GP RC page

Bernoulli numbers in R RC page

Proper divisors in R RC page

Abundant, deficient and perfect number classifications in R RC page

Faulhaber's formula in PARI/GP RC page

Versions #1 and #2.

Kronecker product in PARI/GP RC page

Versions #1 and #2.

Kronecker product in JavaScript RC page

Versions #1 and #2.

String functions

Repeat a string in PARI/GP RC page

Reverse a string in PARI/GP RC page

Substring of a string in PARI/GP RC page

Tokenize a string in PARI/GP v.1,2 RC page

Jaro distance in PARI/GP RC page

Levenshtein distance in PARI/GP RC page

CSV data manipulation in PARI/GP RC page

Fractals, trees and other plotting

Draw a cuboid in PARI/GP RC page

Constrained random points on a circle in gnuplot RC page

Barnsley fern fractal in PARI/GP RC page

Barnsley fern fractal in JavaScript RC page

Barnsley fern fractal in R RC page

Barnsley fern fractal in gnuplot RC page

Sierpinski carpet fractal in PARI/GP RC page

Sierpinski carpet fractal in gnuplot RC page

Version #1.
Versions #2 and #3.

Sierpinski carpet fractal in R RC page

Versions #1 and #2.

Sierpinski triangle fractal in PARI/GP RC page

Sierpinski triangle in R RC page

Chaos Game (Sierpinski triangle) in PARI/GP RC page

Chaos Game (Sierpinski triangle) in R RC page

Chaos Game (Sierpinski triangle) in gnuplot RC page

Sierpinski pentagon in JavaScript RC page

Dragon curve v.3 in PARI/GP RC page

Dragon curve in gnuplot RC page

Dragon curve in JavaScript RC page

Dragon curve in R v.#2 RC page

The Archimedean spiral in PARI/GP RC page

The Archimedean spiral in JavaScript RC page

Polyspiral in PARI/GP RC page

Plotting helper functions
  • Plot the line from x1,y1 to x2,y2.
  • Convert degrees to radians.
  • Convert Polar coordinates to Cartesian.
Version #1. Polyspiral (a spiral made of multiple line segments).
Version #2. Multi-spiral figure translated from zkl.

Polyspiral in gnuplot RC page

Plotting a polyspiral file-function for the load command
Plotting many versions of a polyspiral.
Plotting a polyspiral file-function for the load command (for animation)
Plotting many polyspirals and other pictures for animation.
Creating 2 animated gif-files.
Showing 2 animated gif-files.

Polyspiral in JavaScript RC page

Ulam spiral in PARI/GP RC page

Ulam spiral in R RC page

Ulam spiral in JavaScript RC page

Fibonacci word/fractal in PARI/GP v.1,2 RC page

Fibonacci word/fractal in JavaScript RC page

Fibonacci word/fractal in R RC page

Brownian tree RC page

Plotting helper functions
  • Check if x,y are inside matrix mat[x,y]] (+/- p levels deep).
  • Simple plotting using a square matrix mat (filled with 0/1).
  • Writing file fn containing X,Y coordinates from matrix mat.
  • Plotting from a file written by the wrtmat().
Brownian tree in PARI/GP versions #1 - #4
  • Version #1. Translated from AutoHotkey.
  • Version #2. Translated from Octave.
  • Version #3. Translated from Seed7.
  • Version #4. Translated from PureBasic.

Brownian tree in gnuplot RC page

Plotting helper file for load command
  • Plotting from any data-file with 2 columns (space delimited), and writing to png-file.
Versions #1 - #4. Plotting from PARI/GP generated dat-files

Brownian tree in R RC page

Plotting helper functions
  • plotmat(): Simple plotting using a square matrix mat (filled with 0/1).
  • plotv2(): Simple plotting using 2 vectors (dumped into ".dmp" file by plotmat()).
Brownian tree versions #1 - #4.

Fractal tree in PARI/GP RC page

Fractal tree in R RC page

Pythagoras tree in PARI/GP RC page

Pythagoras tree in R RC page

Voronoi diagram v.2 in JavaScript RC page

Voronoi diagram in R RC page

Kronecker product based fractals in PARI/GP RC page

Kronecker product based fractals in JavaScript RC page

Kronecker product based fractals in R RC page