Exemplo n.º 1
0
def UNVooMsXxHa():
    pspict, fig = SinglePicture("UNVooMsXxHa")
    pspict.dilatation_X(1)
    pspict.dilatation_Y(1)

    x = var('x')
    f = phyFunction(cosh(x)).graph(-10, 10)
    g = phyFunction(sinh(x)).graph(-10, 10)

    f.cut_y(-5, 5)
    g.cut_y(-5, 5)

    f.put_mark(0.2,
               text="\( y=cosh(x)\)",
               pspict=pspict,
               position="E",
               mark_point=f.I)
    g.put_mark(0.2,
               text="\( y=sinh(x)\)",
               pspict=pspict,
               position="E",
               mark_point=g.I)

    pspict.DrawGraphs(f, g)
    pspict.DrawDefaultGrid()
    pspict.DrawDefaultAxes()
    fig.no_figure()
    fig.conclude()
    fig.write_the_file()
Exemplo n.º 2
0
def SYNKooZBuEWsWw():
    pspict, fig = SinglePicture("SYNKooZBuEWsWw")
    pspict.dilatation_X(2)
    pspict.dilatation_Y(0.5)

    x = var('x')
    mx = -2.5
    Mx = 2.5
    f = phyFunction(sinh(x)).graph(mx, Mx)
    g = phyFunction(cosh(x)).graph(mx, Mx)
    f.parameters.color = "red"

    pspict.DrawGraphs(f, g)
    pspict.DrawDefaultAxes()
    fig.conclude()
    fig.write_the_file()
Exemplo n.º 3
0
def AxesSecond():
    pspict, fig = SinglePicture("AxesSecond")

    for i in range(-10, 10):
        x = float(i) / 5
        P = Point(2 * x, sinh(x))
        pspict.DrawGraphs(P)

    pspict.axes.no_graduation()
    pspict.axes.single_axeX.put_mark(0.3,
                                     angle=-45,
                                     text="\( x\)",
                                     pspict=pspict)
    pspict.axes.single_axeY.put_mark(0.3,
                                     angle=0,
                                     text="\( y=\sinh(x)\)",
                                     pspict=pspict)

    pspict.DrawDefaultAxes()
    pspict.comment = "The marks on the axes : \( x\) and \( y=\sinh(x)\)."

    fig.no_figure()
    fig.conclude()
    fig.write_the_file()
Exemplo n.º 4
0
 def _sage_(self):
     import sage.all as sage
     return sage.sinh(self.args[0]._sage_())
Exemplo n.º 5
0
 def _sage_(self):
     import sage.all as sage
     return sage.sinh(self.args[0]._sage_())