2017年11月22日

synonyms

摘要: type_synonym string ="char list" datatype 'a tree = Tip | Node "'a tree" 'a "'a tree" fun mirror :: " 'a tree ⇒ 'a tree" where"mirror Tip = Tip"|" mir 阅读全文

posted @ 2017-11-22 21:54 apple平哥 阅读(479) 评论(0) 推荐(0) 编辑

predefined list

摘要: [] is Nil x # xs is Cons x xs [x1,...xn ] is x1#....#xn#[] xs@ys is app xs ys fun length::" 'a list =>nat" where "length Nil = 0"|"length (Cons x xs) 阅读全文

posted @ 2017-11-22 21:18 apple平哥 阅读(71) 评论(0) 推荐(0) 编辑

Toylist

摘要: theory Toylist imports Mainbegindeclare [[names_short]]no_notation Nil ("[]") and Cons (infixr "#" 65) and append (infixr "@" 65)datatype 'a list = Ni 阅读全文

posted @ 2017-11-22 20:52 apple平哥 阅读(92) 评论(0) 推荐(0) 编辑

types

摘要: declare [[names_short]] datatype bool = True|False (if b then t1 else t2) (let x = t in u) (case t of pat1=>t1|...|patn=>tn) A1=>A2=>A3=>...=>An=>A <= 阅读全文

posted @ 2017-11-22 20:51 apple平哥 阅读(337) 评论(0) 推荐(0) 编辑

2017年8月17日

Animation Events

摘要: var game = new Phaser.Game(800, 600, Phaser.AUTO, 'phaser-example', { preload: preload, create: create, update: update }); function preload() { game.l 阅读全文

posted @ 2017-08-17 20:45 apple平哥 阅读(149) 评论(0) 推荐(0) 编辑

2015年5月6日

加油

摘要: 你要坚信每天叫醒你的不是闹钟,而是心中的梦想。 阅读全文

posted @ 2015-05-06 13:06 apple平哥 阅读(68) 评论(0) 推荐(0) 编辑

2015年4月16日

定积分中值定理-好题

摘要: 设函数fx在区间[a,b]上连续,由定积分中值公式有∫(a,x) f(t)dt =(x-a)f(m) (a<=m<=x<b) ∫(a,x)表示上限是x下限是a若导数f'+(a)存在且非零 求lim(m-a)/(x-a);(这里是x趋向于a+)结果为0.5 阅读全文

posted @ 2015-04-16 23:33 apple平哥 阅读(1691) 评论(0) 推荐(0) 编辑

2015年4月8日

8

摘要: #include #include #include #include #include using namespace std;template int one(int first,int end,T r[]){int i,j,t;i=first,j=end;while(i>n;for(i=0;i... 阅读全文

posted @ 2015-04-08 16:30 apple平哥 阅读(68) 评论(0) 推荐(0) 编辑

2015年4月2日

希尔排序

摘要: #include using namespace std;void xier(int r[],int n){ int d,i,j; for(d=n/2;d>=1;d=d/2){ for(i=d+1;i0&&r[0]<r[j];j=j-d) r[j+d]=r[j]; r[j+d]=r[0]... 阅读全文

posted @ 2015-04-02 15:15 apple平哥 阅读(48) 评论(0) 推荐(0) 编辑

reverse

摘要: #include using namespace std;void reverse(int r[],int first,int end){ int i,n=end-first+1,t; for(i=0;i<n/2;i++){ t=r[first+i]; r[first+i]=r[end-i]; ... 阅读全文

posted @ 2015-04-02 15:14 apple平哥 阅读(99) 评论(0) 推荐(0) 编辑

导航