Contact
CoCalc Logo Icon
StoreFeaturesDocsShareSupport News AboutSign UpSign In
| Download

All published worksheets from http://sagenb.org

Views: 168695
Image: ubuntu2004

Dumping Formula from An Abundance of Katherines by John Green


 


%auto var('x') @interact def _(A = (11, (5,60,1)), C = (0, (-15, 15,1)), D = (0.5, (-1,1,0.1)), H = (1, (-5, 5, 1)), P = (2, (-5, 5, 1)), bogusFactor = (1, (0,1,1)), auto_update=True): pp=plot(-D^7*x^8 + D^2*x^3 - x^2/A^3 -C*x^2 - P*x + 1/A + 13*P + bogusFactor*(sin(2*x)/2)*(1+ ((-1)^(H + 1))*(x + 11*pi/2)^H/(abs( x + 11*pi/2))^H ) ,(x,-50,50)) show(pp, gridlines='minor', ymin=-100, ymax=100)

 

Experiment F: Go wild 

Try typing in the formula for ANY function!  For example, try:

  • g(x)=x33xg(x) = x^3-3*x
  • g(x)=x+sin(x)g(x) = \sqrt{x} + \sin(x)
  • g(x)=(1/x)abs(x)g(x) = (1/x)*abs(x)
  • or anything else you like