绘制分段函数:y=4sin(4πt)-sgn(t-0.3)-sgn(0.72-t)

使用Matplotlib绘制分段函数:

代码:#!/usr/bin/python

绘制三角波形:#!/usr/bin/python

# -*- coding:utf-8 -*-