mirror of
https://github.com/dmolony/DiskBrowser.git
synced 2024-06-26 17:29:50 +00:00
16 lines
291 B
Java
16 lines
291 B
Java
package com.bytezone.diskbrowser.visicalc;
|
|
|
|
public class Cos extends ValueFunction
|
|
{
|
|
Cos (Cell cell, String text)
|
|
{
|
|
super (cell, text);
|
|
assert text.startsWith ("@COS(") : text;
|
|
}
|
|
|
|
@Override
|
|
public double calculateValue ()
|
|
{
|
|
return Math.cos (source.getValue ());
|
|
}
|
|
} |