# ArithmeticRepository class

Namespace: [Grasshopper2](https://developer.rhino3d.com/api/gh2/namespace/grasshopper2.md) · Assembly: [Grasshopper2](https://developer.rhino3d.com/api/gh2/assembly/grasshopper2.md)

```cs
public abstract class ArithmeticRepository
```

Derive from this class to provide custom arithmetic operator methods. Add any number of public, *static* methods which represent either binary operator logic, or unary/binary/ternary arithmetic function logic and decorate them with the appropriate [Arithmetic.OperatorAttribute](https://developer.rhino3d.com/api/gh2/type/grasshopper2.arithmetic.operatorattribute.md) or [Arithmetic.FunctionAttribute](https://developer.rhino3d.com/api/gh2/type/grasshopper2.arithmetic.functionattribute.md) respectively.

## Methods

- [UndefinedException](https://developer.rhino3d.com/api/gh2/type/grasshopper2.arithmeticrepository/undefinedexception.md): (5 overloads, static) Create an exception expressing an undefined binary function.
