#!/usr/bin/env python3
# -*- coding: utf-8 -*-
"""
Created on Wed Jan 30 15:27:47 2019

@author: lg
"""

import math
import numpy as np

from matplotlib import pyplot as plt

a=np.arange(-100,100,0.0001)

b=[]


def sx(k):
    t1=math.sin(k)/k
    return t1



def plott(px):
    for k in a:
        if k!=0:
            temp1=px(k)
            b.append(temp1)
    
    
    
    plt.figure(figsize=(8,6))
    
    plt.plot(a,b)

plott(sx)

python sin(x)/x 图像

相关文章:

  • 2021-12-18
  • 2022-12-23
  • 2022-12-23
  • 2021-08-01
  • 2022-12-23
  • 2021-12-03
  • 2022-12-23
  • 2022-01-26
猜你喜欢
  • 2021-05-03
  • 2021-10-17
  • 2021-10-17
  • 2021-11-05
  • 2021-08-04
  • 2021-08-12
相关资源
相似解决方案