xingqshi的个人博客分享 http://blog.sciencenet.cn/u/xingqshi 个人网页 https://xingqshi.wixsite.com/shixq

博文

Visualization of trigonometric functions with gnuplot

已有 4092 次阅读 2013-6-10 18:23 |系统分类:科研笔记| function, Gnuplot, VISUALIZATION



gnuplot script used to generate the above plot:

set yrange [-2.5:2.5]  

set xrange [-4.7124:4.7124]

unset border              

set arrow from -5,0 to 5.5,0  

set arrow from 0,-2.7 to 0,2.8    

set key at -5,2.2

set grid

set size square

plot sin(x) w p pt 6, cos(x) w p pt 7, tan(x) lw 2, 1/tan(x) lw 2

==============

Note that there are no cosecant, secant, and cotangent functions in gnuplot - but you can create them yourself by writing:

gnuplot> cosec (x) = 1 / sin (x)

gnuplot> sec (x) = 1 / cos (x)

gnuplot> cot (x) = 1 / tan (x)

More information about gnuplot avaliable at:

http://faraday.elec.uow.edu.au/subjects/spring/ecte212/gnuplot.pdf



https://blog.sciencenet.cn/blog-298567-698332.html

上一篇:数学物理方法 -- 资料小结
收藏 IP: 183.37.199.*| 热度|

0

该博文允许注册用户评论 请点击登录 评论 (0 个评论)

数据加载中...

Archiver|手机版|科学网 ( 京ICP备07017567号-12 )

GMT+8, 2024-12-23 21:00

Powered by ScienceNet.cn

Copyright © 2007- 中国科学报社

返回顶部