ExpModCostingFunction

scalus.uplc.eval.ExpModCostingFunction
case class ExpModCostingFunction(coefficient00: CostingInteger, coefficient11: CostingInteger, coefficient12: CostingInteger)

Costing function for modular exponentiation (expModInteger builtin).

The cost formula is: if aa <= mm then cost0 else cost0 + cost0/2 where cost0 = c00 + c11 * ee * mm + c12 * ee * mm * mm

Value parameters

coefficient00

constant coefficient

coefficient11

coefficient for e * m term

coefficient12

coefficient for e * m^2 term

Attributes

Graph
Supertypes
trait Serializable
trait Product
trait Equals
class Object
trait Matchable
class Any
Show all

Members list

Value members

Concrete methods

Inherited methods

def productElementNames: Iterator[String]

Attributes

Inherited from:
Product
def productIterator: Iterator[Any]

Attributes

Inherited from:
Product