Post Reply 
linear mode (Entry: algebraic)
01-14-2020, 02:40 AM (This post was last modified: 01-14-2020 08:37 PM by compsystems.)
Post: #6
RE: linear mode (Entry: algebraic)
It is easier to copy a code made in an external editor or copy it from a website and paste it directly into the calculator (simulator) input line, instead of going to the calculator's program editor, due to its small screen limitation. The problem It is solved by working in linear mode but it is necessary to be constantly changing to pretty print (Text book), another solution is to previously remove the comments of each code to be defined, but the most practical solution is that the interpreter of the input line knows how to differentiate the operator division / of a commentary //

and even the definition fails if you enter from the variable editor
[shift]+[mem] + CAS Vars

using / * and * / also fails
PHP Code:
function fract(X_,Y_,Nmax/* Mandelbrot fractal, not using symmetry. */
  
local x,y,z,c,j,w,h,res1,res2;
  
freeze;
  
w:=2.7/X_;
  
h:=-1.87/Y_;
  
res1:=[]; 
  
Y_:=Y_-1;
  for 
y from 0 to Y_ do
    
c:=-2.1+i*(h*y+0.935);
    for 
x from 0 to X_-do
      
z:=0;
      for 
j from 0 to Nmax-do
        if 
abs(z:=z^2+c)>2 then break; fi;
      
od;
      
res1.append(pixon_p(x,y,126*j+2079));
      
c:=c+w;
    
od;
  
od;
  
//return res1:; 
ffunction 
Find all posts by this user
Quote this message in a reply
Post Reply 


Messages In This Thread
RE: linear mode (Entry: algebraic) - compsystems - 01-14-2020 02:40 AM



User(s) browsing this thread: 1 Guest(s)