INNER CODE UNIT · Dart

log

roipeker/graphx · lib/src/math.dart:89

  static const log = math.log;

  /// Evaluates `a` and `b` and returns the largest value.
  static const max = math.max;

  /// Evaluates `a` and `b` and returns the smallest value.
  static const min = math.min;

  /// Computes and returns `x` to the power of `exponent`.
  static const pow = math.pow;

  /// Factory constructor to ensure exception. Throws an exception if an attempt
  /// is made to instantiate this class.
  factory Math() {
    throw UnsupportedError(
      "Cannot instantiate Math. Use only static methods.",
    );
  }

View source record →

📰 Research Paper
Loading…
⏳ Fetching content…