代码如下:
package 输出全部希腊字母public class GreekAlphabet {
public static void main(String args[]) {
int startPosition = 0, endPosition = 0
char cSrart = 'α', cEnd = 'ω'
startPosition = (int) cSrart
endPosition = (int) cEnd
System.out.println("希腊字母表:")
System.out.println("小写:")
for (int i = startPosition i <= endPosition i++) {
char c = '\0'
c = (char) i
System.out.print(" " + c)
if ((i - startPosition + 1) % 10 == 0) {
System.out.println(""颂厅)
}
}
System.out.println()
cSrart = 'Α'
cEnd = 'Ω'
startPosition = (int) cSrart
endPosition = (int) cEnd
System.out.println("大写:")
for (int i = startPosition i <= endPosition i++) {
char c = '\0'
c = (char) i
System.out.print(" " + c)
if ((i - startPosition + 1) % 10 == 0) {
System.out.println("唤陵")
}
}
}
}
结果:
希腊字母表:小写:
α β γ δ ε ζ η θ ι κ
λ μ ν ξ ο π ρ ? σ τ
υ φ χ ψ ω
大写:
Α Β Γ Δ Ε Ζ Η Θ Ι Κ
Λ Μ Ν Ξ 和樱戚Ο Π Ρ ? Σ Τ
Υ Φ Χ Ψ Ω
\alpha表示α,\theta表示θclear
allclc
theta=-pi/闷配2:pi/40:pi/2
y=sin(theta)
plot(theta,y)
title('sin(\theta)')
----------------------------
\beta----β,蚂御指\gamma----γ还有很多,打拆闹不出来。
欢迎分享,转载请注明来源:内存溢出
评论列表(0条)