![](https://img-blog.csdnimg.cn/20201014180756780.png?x-oss-process=image/resize,m_fixed,h_64,w_64)
算法
zhangshufa
这个作者很懒,什么都没留下…
展开
-
绘制余弦曲线
/* 绘制余弦曲线*/public class Cosine { public static void main(String[] args) { double y; int x, m;/* for(y=1; y>=-1; y-=0.1) { System.out.print((int)(Math.acos(y) * 100) + ","); } System.out.pr原创 2010-05-18 20:32:00 · 485 阅读 · 0 评论 -
杨辉三角
/***杨辉三角*/public class PascalTriangle { public static int getValue(int x, int y) { int value; if(y == 1 || y == x+1) return 1; else return (getValue(x-1, y-1) + getValue(x-1, y)); } public stat原创 2010-05-18 20:33:00 · 324 阅读 · 0 评论