学习:人工智能-机器学习-深度学习概念的区别

学习: matplotlib绘制阻尼正弦波

妙音 posted @ 2019年4月06日 07:55 in 人工智能 with tags matplotlib , 3428 阅读

介绍

 
* 阻尼正弦波定义: 振幅会随时间增长而趋向零的正弦波函数
 
 
 
* 示例图片
 
 
* 应用
 
a.任何振动系统
 
b.共振
 
c.简谐运动(弹簧、单摆)
 
d.车辆避震系统
 
e.RLC电路
 
f.有阻尼的弦波
 

绘制方法

import matplotlib.pyplot as plt
import numpy as np


#阻尼正弦波计算公式
def f(t):
    'A damped exponential'
    s1 = np.cos(2 * np.pi * t)    # 余弦
    e1 = np.exp(-t)               # 自然数e的幂
    return s1 * e1


t1 = np.arange(0.0, 5.0, .2)    # 定义x轴(可以将步长改小,图像就很明显)

l = plt.plot(t1, f(t1), 'ro')   # t1是x轴上的点, f(t1)是y轴上的点, ro表示点是红色+圆形
plt.setp(l, markersize=30)         # 设置点的大小
plt.setp(l, markerfacecolor='C0')  # 颜色

plt.show()
 
 
* 绘制结果
 
来源
 
此生必看的科学实验-水知道答案
《了凡四训》详解之改过之法
印光大师十念法(胡小林主讲第1集)
精神病为什么治不好
百病之源

 

Avatar_small
f88tw 说:
2019年11月30日 07:44

敬启者:个人小网站希望大家多多支持 感谢您对我们热心的支持 f88tw┃华歌尔┃I appreciate your kind assistance. f88tw|墓园|捡骨流程|捡骨费用|捡骨时间|禁忌|捡骨颜色|捡骨师|新竹|时间|台北|桃园|苗栗|头份|火化|晋塔|安葬|法事|捡骨|看日子|墓穴|墓园|坟墓|看日子|乞丐|http://mypaper.m.pchome.com.tw/f88tw

Avatar_small
https://hotmailmsn.o 说:
2019年12月27日 11:36

Good to become visiting your weblog again, it has been months for me. Nicely this article that i've been waited for so long. I will need this post to total my assignment in the college, and it has exact same topic together with your write-up. Thanks, good share.

Avatar_small
hotmail-inicio-sesio 说:
2020年1月25日 17:29

You completed certain reliable points there. I did a search on the subject and found nearly all persons will agree with your blog.

Avatar_small
Click Here 说:
2020年2月09日 20:14

The post is written in very a good manner and it contains many useful information for me.

Avatar_small
kaleanna 说:
2020年2月13日 12:38

The information is very good, I think it is difficult because I have just started. <a href="https://run3game.io/">run 3</a>

Avatar_small
krunker 说:
2020年2月13日 16:22

I'm not sure but it's a good data, I just started to learn about it

Avatar_small
latest chess info 说:
2020年2月16日 16:45

Wow, cool post. I'd like to write like this too - taking time and real hard work to make a great article... but I put things off too much and never seem to get started. Thanks though.

Avatar_small
https://www.winning2 说:
2020年2月17日 18:36

Great things you’ve always shared with us. Just keep writing this kind of posts.The time which was wasted in traveling for tuition now it can be used for studies.Thanks


登录 *


loading captcha image...
(输入验证码)
or Ctrl+Enter