My favorites
▼
|
Sign in
fnpad
a text editor based, functional programming style, graphing calculator
Project Home
Downloads
Wiki
Issues
Source
Checkout
Browse
Changes
Source path:
svn
/
trunk
/
fnx
/
cos.java
‹r12
r17
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
/**
* fnPad: a functional programming style calculator
* Copyright © 2001-2010 Hank Dolben, org.dolben.fn.Pad.LICENSE
*/
package fnx;
/**
* a fnPad cosine Function
*/
public class cos extends org.dolben.fn.Function {
/**
* makes an object that calculates the cosine of its argument
*/
public cos( ) {
super(1);
}
/**
* calculates the cosine of the zeroth argument
*
* @return cosine
*
* @throws Exception when argument is not a Number
*/
protected Object evaluate( ) throws Exception {
return new Double(Math.cos(getDouble(0)));
}
}
Show details
Hide details
Change log
r17
by hdolben on Mar 14, 2010
Diff
use copyright symbol
Go to:
/trunk/fnx/abs.java
/trunk/fnx/acos.java
/trunk/fnx/asin.java
/trunk/fnx/atan.java
/trunk/fnx/atan2.java
/trunk/fnx/cos.java
/trunk/fnx/eng.java
/trunk/fnx/fix.java
/trunk/fnx/hex.java
/trunk/fnx/ln.java
/trunk/fnx/oct.java
/trunk/fnx/rnd.java
/trunk/fnx/sin.java
/trunk/fnx/sqrt.java
/trunk/fnx/tan.java
/trunk/org/dolben/dogs/Scale.java
/trunk/org/dolben/fn/Addition.java
/trunk/org/dolben/fn/And.java
...k/org/dolben/fn/Application.java
/trunk/org/dolben/fn/Array.java
...g/dolben/fn/BinaryOperation.java
/trunk/org/dolben/fn/BitAnd.java
/trunk/org/dolben/fn/BitOr.java
/trunk/org/dolben/fn/BitXor.java
...lben/fn/CalculationsExample.java
...nk/org/dolben/fn/Complement.java
...k/org/dolben/fn/Conditional.java
...lben/fn/ConditionalsExample.java
/trunk/org/dolben/fn/Constant.java
...olben/fn/DefinitionsExample.java
/trunk/org/dolben/fn/Division.java
/trunk/org/dolben/fn/EqualTo.java
/trunk/org/dolben/fn/Evaluable.java
...rg/dolben/fn/Exponentiation.java
.../org/dolben/fn/FormatDouble.java
/trunk/org/dolben/fn/Function.java
/trunk/org/dolben/fn/Graph.java
...nk/org/dolben/fn/GraphPanel.java
...g/dolben/fn/GraphingExample.java
...k/org/dolben/fn/GreaterThan.java
...ben/fn/GreaterThanOrEqualTo.java
/trunk/org/dolben/fn/HexLong.java
/trunk/org/dolben/fn/Index.java
/trunk/org/dolben/fn/LeftShift.java
/trunk/org/dolben/fn/LessThan.java
...dolben/fn/LessThanOrEqualTo.java
/trunk/org/dolben/fn/Modulus.java
...rg/dolben/fn/Multiplication.java
/trunk/org/dolben/fn/Negation.java
/trunk/org/dolben/fn/Not.java
Project members,
sign in
to write a code review
Older revisions
r12
by hdolben on Jan 9, 2010
Diff
merged branches/hank-01
r10
by hdolben on Jan 9, 2010
Diff
merged branches/hank-01
r8
by hdolben on Jan 9, 2010
Diff
merged branches/hank-01
All revisions of this file
File info
Size: 637 bytes, 30 lines
View raw file
Powered by
Google Project Hosting