22 lines
819 B
Java
22 lines
819 B
Java
package com.bytezone.diskbrowser.visicalc;
|
|
|
|
// -----------------------------------------------------------------------------------//
|
|
class Tan extends ValueFunction
|
|
// -----------------------------------------------------------------------------------//
|
|
{
|
|
// ---------------------------------------------------------------------------------//
|
|
Tan (Cell cell, String text)
|
|
// ---------------------------------------------------------------------------------//
|
|
{
|
|
super (cell, text);
|
|
assert text.startsWith ("@TAN(") : text;
|
|
}
|
|
|
|
// ---------------------------------------------------------------------------------//
|
|
@Override
|
|
public double calculateValue ()
|
|
// ---------------------------------------------------------------------------------//
|
|
{
|
|
return Math.tan (source.getDouble ());
|
|
}
|
|
} |