Difference between revisions of "RandomPage"

Line 3: Line 3:
 
size(200);
 
size(200);
  
real f(real x) {return 1000*x^2-3950;};
+
real f(real x) {return 70*x^2-98.3;};
 
real g1(real x) {return sqrt(4*4-x*x);};
 
real g1(real x) {return sqrt(4*4-x*x);};
 
real g2(real x) {return -sqrt(4*4-x*x);};
 
real g2(real x) {return -sqrt(4*4-x*x);};
draw(graph(f,-2,-1.99),red);
+
real g3(real x) {return -sqrt(3^2-x*x);};
draw(graph(f,1.99,2),red);
+
draw(graph(f,-1.2,-1.185),black);
draw(graph(g1,-4,4),blue);
+
draw(graph(f,1.185,1.2),black);
draw(graph(g2,-4,4),blue);
+
draw(graph(g1,-4,4),black);
axes("$x$","$y$");
+
draw(graph(g2,-4,4),black);
 +
draw(graph(g3,-2,5,2.5),black);
 
</asy>
 
</asy>

Revision as of 08:05, 7 April 2021

import graph;
size(200);

real f(real x) {return 70*x^2-98.3;};
real g1(real x) {return sqrt(4*4-x*x);};
real g2(real x) {return -sqrt(4*4-x*x);};
real g3(real x) {return -sqrt(3^2-x*x);};
draw(graph(f,-1.2,-1.185),black);
draw(graph(f,1.185,1.2),black);
draw(graph(g1,-4,4),black);
draw(graph(g2,-4,4),black);
draw(graph(g3,-2,5,2.5),black);
 (Error making remote request. No response to HTTP request)
Invalid username
Login to AoPS