Difference between revisions of "RandomPage"

 
(One intermediate revision by the same user not shown)
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(2.7^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.3,2.3),black);
 
</asy>
 
</asy>

Latest revision as of 08:07, 7 April 2021

[asy] 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(2.7^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.3,2.3),black); [/asy]

Invalid username
Login to AoPS