|
Revision 3550, 1.2 KB
(checked in by sukyoungryu, 9 months ago)
|
|
[copyright] Fixed the copyright notices.
|
| Line | |
|---|
| 1 | (******************************************************************************* |
|---|
| 2 | Copyright 2009 Sun Microsystems, Inc., |
|---|
| 3 | 4150 Network Circle, Santa Clara, California 95054, U.S.A. |
|---|
| 4 | All rights reserved. |
|---|
| 5 | |
|---|
| 6 | U.S. Government Rights - Commercial software. |
|---|
| 7 | Government users are subject to the Sun Microsystems, Inc. standard |
|---|
| 8 | license agreement and applicable provisions of the FAR and its supplements. |
|---|
| 9 | |
|---|
| 10 | Use is subject to license terms. |
|---|
| 11 | |
|---|
| 12 | This distribution may include materials developed by third parties. |
|---|
| 13 | |
|---|
| 14 | Sun, Sun Microsystems, the Sun logo and Java are trademarks or registered |
|---|
| 15 | trademarks of Sun Microsystems, Inc. in the U.S. and other countries. |
|---|
| 16 | ******************************************************************************) |
|---|
| 17 | |
|---|
| 18 | component dimensionUnit |
|---|
| 19 | |
|---|
| 20 | export Executable |
|---|
| 21 | |
|---|
| 22 | run() = do |
|---|
| 23 | x: RR64 Length = 1.3 m |
|---|
| 24 | t: RR64 Time = 5 s |
|---|
| 25 | v: RR64 Velocity = x/t |
|---|
| 26 | w: RR64 Velocity in nm/s = 17 nm/s |
|---|
| 27 | y: (RR64 Velocity in furlongs) per fortnight = (v in furlongs) per fortnight |
|---|
| 28 | z: (RR64 Time)squared = 8 square s |
|---|
| 29 | 3 grams per cubic centimeter |
|---|
| 30 | (5 meter per second)squared |
|---|
| 31 | 7 inverse ohms |
|---|
| 32 | a: Any[3] = [5 mg, 3 m, 4 s] |
|---|
| 33 | f(xs: Any[3]) = xs[1] |
|---|
| 34 | f(a) |
|---|
| 35 | end |
|---|
| 36 | |
|---|
| 37 | end |
|---|