[Python] How to plot 4*sin(2*x)/cos(2*x)**3 using Sympy?

Discussão em 'Python' iniciado por Stack, Abril 18, 2025.

  1. Stack

    Stack Membro Participativo

    I am trying to plot the expression 4*sin(2*x)/cos3(2*x) in Sympy:

    from sympy import *
    from sympy.plotting import plot
    x = symbols('x')
    expr = 4*sin(2*x)/cos(2*x)**3
    plot(expr)


    But all I get is: [​IMG]

    when it should look a bit like a horizontally-squished tangent graph: [​IMG]

    Continue reading...

Compartilhe esta Página