m0_62429133 2022-10-11 14:07 采纳率: 80%
浏览 295
已结题

您好,能用python 帮我解决这些问题吗

img


这是问题的列表,,能帮我解决吗?需要很快的时间,麻烦各位了!!

  • 写回答

8条回答 默认 最新

  • 往事随风云渐起 2022-10-11 14:53
    关注
    
    import numpy as np
    from matplotlib import pyplot as plt
    
    x = np.arange(-10, 10, 0.1)
    y = x
    plt.xlabel('x')
    plt.ylabel('f(x)')
    plt.title("f(x)=x")
    plt.plot(x, y)
    plt.show()
    
    x = np.arange(-10, 10, 0.1)
    y = x ** 2
    plt.xlabel('x')
    plt.ylabel('f(x)')
    plt.title("f(x)=x^2")
    plt.plot(x, y)
    plt.show()
    
    x = np.arange(-10, 10, 0.1)
    y = x ** 3
    plt.xlabel('x')
    plt.ylabel('f(x)')
    plt.title("f(x)=x^3")
    plt.plot(x, y)
    plt.show()
    
    x = np.arange(-10, 10, 0.1)
    y = x ** 0.5
    plt.xlabel('x')
    plt.ylabel('f(x)')
    plt.title("f(x)=x^0.5")
    plt.plot(x, y)
    plt.show()
    
    x = np.arange(-10, 10, 0.1)
    y = np.log(1/x)
    plt.xlabel('x')
    plt.ylabel('f(x)')
    plt.title("f(x)=ln(x)")
    plt.plot(x, y)
    plt.show()
    
    
    
    本回答被题主选为最佳回答 , 对您是否有帮助呢?
    评论
查看更多回答(7条)

报告相同问题?

问题事件

  • 系统已结题 10月19日
  • 已采纳回答 10月11日
  • 赞助了问题酬金50元 10月11日
  • 创建了问题 10月11日