2007年5月28日 星期一

Definition of Words

奏鳴曲:sonata

圓舞曲:waltz

舞曲:contredance-->
contradance(變體)

組曲:suite;partita;cento

前奏曲:prelude



鋼琴四手聯彈是一種很親密、很溫暖的音樂形式。莫札特小時候經常

和姊姊一起在鋼琴上「玩」四手聯彈,舒伯特在與朋友的聚會中也常
以四手聯彈曲來助興。 張懿文在美國伊士曼音樂學院受教於潘妮斯教

授期間,四手聯彈的歡樂成為師生和同學間彼此情感的交流方式。因
此,藉著這次的音樂會,讓觀眾一起來感受四手聯彈的趣味性! 本場
名音樂會將帶來被稱為四手聯彈始祖的莫札特,他所寫的天真活潑的
奏鳴曲K381;佛瑞的「桃莉組曲」,是佛瑞寫給德布希第二任妻子的
小女兒桃莉的一首親密溫馨的珠玉小品;另外,布拉姆斯因為受到舒
伯特圓舞曲的影響,譜出了十六首優雅精緻的圓舞曲;而捷克作曲家
德佛札克,則是受到布拉姆斯匈牙利舞曲的啟發,用自己的語言創作
了充滿民族色彩的斯拉夫舞曲。



ANTONIN DVORAK Slavonic Dances Nos. 1-8, Op.46

Dolly Suite, Op.56

JOHANNES BRAHMS Waltzes, Op. 39

Sonata for piano 4 hands in D major, K. 381


From 交大藝文中心


2007年5月27日 星期日

Maxwell equation

Check here for further information...

Discrete Math for definition from Wiki

解析解


In mathematics, an equation or system of equations is said to have a closed-form solution if, and only if, at least one solution can be expressed analytically in terms of a bounded number of certain "well-known" functions. Typically, these well-known functions are defined to be elementary functions; so infinite series, limits, and continued fractions are not permitted.

For example, the roots of any quadratic equation with complex coefficients can be expressed in closed form in terms of addition, subtraction, multiplication, division, and square root extraction, all elementary functions. However, there are quintic equations without closed-form solutions using elementary functions.

Changing the definition of "well-known" to include additional functions can change the set of equations with closed-form solutions. Many cumulative distribution functions cannot be expressed in closed form, unless one considers special functions such as the error function or gamma function to be well-known. For many practical computer applications, it is entirely reasonable to assume that the gamma function and other special functions are well-known, since numerical implementations are widely available.

Because most practical cases do not have an analytical solution but still have a numerical one, for practical purposes analyticity is not important.

In physics, an analytic solution is a solution arrived at through the use of equations, rather than through a computer simulation or a numerical computation. An analytic solution may be either exact or an approximation. While it is not always possible to get an analytic solution, it is usually favored because it supplements insights on the nature of the problem at hand.

Java Exercise for inheritance

public class Father {

Father(int x){
//print();
//this.print();
y=x;

}
int y;
public int identity=100;
public int x=0;
public void print(){
System.out.println("print method in Father");
System.out.println("Identity in method \"print\" in Father object "+identity);
}
}


-------------


public class Son extends Father{
private int identity=99;
int y=7;

Son(){
//this in Father in Son
super(9);
super.print();
this.print();

}

public void print(){
System.out.println("print method in Son");

System.out.println("Identity used \"super\"in method \"print\" in Son object :> "+super.identity);

System.out.println("\nIdentity used \"this\"in method \"print\" in Son object "+this.identity);

System.out.println("\nIdentity in method \"print\" in Son object "+identity);
System.out.println("Y in son "+y);
System.out.println("Y in Father "+super.y);
//super.print();
}

}



-------------


public class In {

public static void main(String[] args) {
//Father f= new Father();
System.out.println("-----Partition-----");
Son s=new Son();
System.out.println("-----Partition-----");

Father t=(Father)s;
t.print();
//IMatrix a=new Matrix();
//a
}

}

2007年5月26日 星期六

Java Exercise for enhanced loop

public class arr {
arr() {
show();
}

private void show() {

int[] array = { 1, 2, 3, 4, 5 };
for (int i = 0; i <= 4; i++) {
System.out.print(array[i] + " ");
}
System.out.println("\n\n");
for (int elm : array) {
// elm++;
System.out.print(elm * elm + " ");
}

System.out.println("\n\n");
int[][] arr = { { 1, 2, 3 }, { 4, 5, 6 }, { 7, 8, 9 } };
for (int[] row : arr){
for (int element : row){
System.out.print(element+" ");
}
System.out.println();
}
}

}

Java Exercise for parse

public class Typical {

public static void main(String[] args) {
final float Pi= 3.1415926f;//float 之後要加入f
int x=1;
float y=2.52f;
double z=3.53;
boolean judge=true;
String str="True";
String numStr="123.9";

System.out.println("This is Pi : "+Pi);
System.out.println("This is judge : "+judge);
judge=Boolean.valueOf(str);
System.out.println("This is judge : "+judge);
try{
print(x);
x=Integer.parseInt(numStr);
print(x);
y=Float.parseFloat(numStr);
print(y);
z=Double.parseDouble(numStr);
print(z);
}
catch(NumberFormatException e){
System.out.println("Wrong Type");
}
finally{
System.out.println("This is Finally Statement");
}
multiTable();

}
static private void print(int a){
System.out.println("\n\n==> "+a);
}
static private void print(float a){
System.out.println("\n\n==> "+a);
}
static private void print(double a){
System.out.println("\n\n==> "+a);
}
static private void multiTable(){
for(int j = 1; j < 10; j++) {
for(int i = 2; i < 10; i++) {
System.out.printf("%d*%d=%2d ",i, j, i * j);
}
System.out.println();
}
}

}

Java Exercise for while

import java.io.BufferedReader;
import java.io.IOException;
import java.io.InputStreamReader;


public class loop{
loop() throws NumberFormatException, IOException{
execute();
}
private void execute() throws NumberFormatException, IOException{
int repeat=1;
while(repeat==1? true:false){
BufferedReader br = new BufferedReader (new InputStreamReader(System.in));
System.out.println("\nInput a number to tell if it is odd or even.\nCommand Line :>");

String str=br.readLine();
if(str.equals("exit")){
repeat=0;
break;
}
System.out.println("It is a "+((Integer.parseInt(str))%2==1?"Odd":"Even")+" Number");
//repeat=(Integer.parseInt(str))==-1?0:1;



}
System.out.println("Section Terminated");
}


}