Name:

asciiplot plots a function in a range using ASCII characters

Library name:

void sollya_lib_asciiplot(sollya_obj_t, sollya_obj_t)

Usage:

asciiplot(function, range) : (function, range) -> void

Parameters:

Description:

Example 1:

   > asciiplot(exp(x),[1;2]);
                                                                             xx
                                                                           xx  
                                                                         xx    
                                                                       xx      
                                                                     xx        
                                                                  xxx          
                                                                xx             
                                                             xxx               
                                                           xx                  
                                                        xxx                    
                                                     xxx                       
                                                  xxx                          
                                               xxx                             
                                            xxx                                
                                        xxxx                                   
                                     xxx                                       
                                 xxxx                                          
                             xxxx                                              
                         xxxx                                                  
                     xxxx                                                      
                xxxxx                                                          
           xxxxx                                                               
      xxxxx                                                                    
   xxx                                                                         

Example 2:

   > asciiplot(expm1(x),[-1;2]);
                            |                                                 x
                            |                                                x
                            |                                               x  
                            |                                              x   
                            |                                            xx    
                            |                                           x      
                            |                                          x       
                            |                                        xx        
                            |                                       x          
                            |                                     xx           
                            |                                   xx             
                            |                                 xx               
                            |                               xx                 
                            |                             xx                   
                            |                           xx                     
                            |                        xxx                       
                            |                     xxx                          
                            |                 xxxx                             
                            |             xxxx                                 
                            |         xxxx                                     
                            |   xxxxxx                                         
   ---------------------xxxxxxxx-----------------------------------------------
            xxxxxxxxxxxx    |                                                  
   xxxxxxxxx                |                                                  

Example 3:

   > asciiplot(5,[-1;1]);
   5

Example 4:

   > asciiplot(exp(x),[1;1]);
   2.7182818284590452353602874713526624977572470937
See also: plot, externalplot
Go back to the list of commands