Baronas Miunchauzenas

1330 days ago by pub

a=8; b=7; c=1; d=4; 
       
x=var(x); a,b,c,d=var('a,b,c,d'); 
       
S=(x/2)*(sqrt(a^2 - ((x^2-b^2+a^2)/(2*x))^2)+sqrt(d^2 - ((x^2-c^2+d^2)/(2*x))^2)) 
       
print S; 
       
2    2    2 2                2    2    2 2
                   2   (x  + d  - c )           2   (x  - b  + a )
          x (sqrt(d  - ---------------) + sqrt(a  - ---------------))
                               2                            2
                            4 x                          4 x
          -----------------------------------------------------------
                                       2
2    2    2 2                2    2    2 2
                   2   (x  + d  - c )           2   (x  - b  + a )
          x (sqrt(d  - ---------------) + sqrt(a  - ---------------))
                               2                            2
                            4 x                          4 x
          -----------------------------------------------------------
                                       2
a=8; b=7; c=1; d=4; 
       
def plotas(x): return ((x/2)*(sqrt(a^2 - ((x^2-b^2+a^2)/(2*x))^2)+sqrt(d^2 - ((x^2-c^2+d^2)/(2*x))^2)) ); 
       
G = plot(plotas, 0, 10, thickness=5, rgbcolor=(0.5,1,0.5)); 
       
verbose 0 (3585: plot.py, _plot) WARNING: When plotting, failed to
evaluate function at 320 points.
verbose 0 (3585: plot.py, _plot) Last error message: 'math domain error'
verbose 0 (3585: plot.py, _plot) WARNING: When plotting, failed to evaluate function at 320 points.
verbose 0 (3585: plot.py, _plot) Last error message: 'math domain error'
G.show(); 
       
a=8; b=4; c=1; d=7; 
       
def plotas(x): return ((x/2)*(sqrt(a^2 - ((x^2-b^2+a^2)/(2*x))^2)+sqrt(d^2 - ((x^2-c^2+d^2)/(2*x))^2)) ); 
       
G = plot(plotas, 0, 10, thickness=5, rgbcolor=(1,0.5,0.5)); 
       
verbose 0 (3585: plot.py, _plot) WARNING: When plotting, failed to
evaluate function at 320 points.
verbose 0 (3585: plot.py, _plot) Last error message: 'math domain error'
verbose 0 (3585: plot.py, _plot) WARNING: When plotting, failed to evaluate function at 320 points.
verbose 0 (3585: plot.py, _plot) Last error message: 'math domain error'
G.show(); 
       
a=8; b=1; c=4; d=7; 
       
def plotas(x): return ((x/2)*(sqrt(a^2 - ((x^2-b^2+a^2)/(2*x))^2)+sqrt(d^2 - ((x^2-c^2+d^2)/(2*x))^2)) ); 
       
G = plot(plotas, 0, 10, thickness=5, rgbcolor=(0.5,0.5,1)); 
       
verbose 0 (3585: plot.py, _plot) WARNING: When plotting, failed to
evaluate function at 320 points.
verbose 0 (3585: plot.py, _plot) Last error message: 'math domain error'
verbose 0 (3585: plot.py, _plot) WARNING: When plotting, failed to evaluate function at 320 points.
verbose 0 (3585: plot.py, _plot) Last error message: 'math domain error'
G.show();