From b3b042c27191fd89b8ade1b1b594ed4623fa5891 Mon Sep 17 00:00:00 2001 From: thepaperpilot Date: Mon, 2 Jan 2023 16:41:50 -0600 Subject: [PATCH] Add static functions for trig functions in b_e --- src/lib/break_eternity.ts | 48 +++++++++++++++++++++++++++++++++++++++ 1 file changed, 48 insertions(+) diff --git a/src/lib/break_eternity.ts b/src/lib/break_eternity.ts index e9f7099..b2d71be 100644 --- a/src/lib/break_eternity.ts +++ b/src/lib/break_eternity.ts @@ -882,6 +882,54 @@ export default class Decimal { return D(value).pentate(height, payload); } + public static sin(value: DecimalSource): Decimal { + return D(value).sin(); + } + + public static cos(value: DecimalSource): Decimal { + return D(value).cos(); + } + + public static tan(value: DecimalSource): Decimal { + return D(value).tan(); + } + + public static asin(value: DecimalSource): Decimal { + return D(value).asin(); + } + + public static acos(value: DecimalSource): Decimal { + return D(value).acos(); + } + + public static atan(value: DecimalSource): Decimal { + return D(value).atan(); + } + + public static sinh(value: DecimalSource): Decimal { + return D(value).sinh(); + } + + public static cosh(value: DecimalSource): Decimal { + return D(value).cosh(); + } + + public static tanh(value: DecimalSource): Decimal { + return D(value).tanh(); + } + + public static asinh(value: DecimalSource): Decimal { + return D(value).asinh(); + } + + public static acosh(value: DecimalSource): Decimal { + return D(value).acosh(); + } + + public static atanh(value: DecimalSource): Decimal { + return D(value).atanh(); + } + /** * If you're willing to spend 'resourcesAvailable' and want to buy something * with exponentially increasing cost each purchase (start at priceStart,