摘要
通过编写程序输出数学曲线,具有一定的趣味性,可以开阔编程视野。只要具有初级程序设计能力,再结合有关数学知识就能实现。程序设计的思想是利用数学公式求得多个位置值,用Tab函数定位,用Print语句在这些位置上分别输出符号"*",从而得到由多个"*"组成的数学曲线,例如三角函数曲线、抛物线曲线、半圆曲线及概率曲线等。
Programming by outputting mathematics curves is interesting and broadening our horizons, which could be achieved with primary programming ability and mathematical knowledge.The core of programming is to calculate position values using mathematical formula, and uses the Tab function to position, and then outputs "*" on these position by Print statement, and finally gets the mathematical curve by connecting these "*", such as trigonometric function curve, parabolic curve, the semi-circular curve and the probability curve.
出处
《现代计算机》
2012年第12期73-76,共4页
Modern Computer
关键词
编程
输出
数学曲线
Programming
Output
Mathematics Cuwes