# Calculators with mod and custom functions

1. Sep 3, 2013

Hi,
I need a calculator that have mod(remainder) function and that allows me to enter custom function, for example: f(x) = (x^2+3x+2)mod13 , and then quickly calculate the values of that function by entering different values for x.
Do you know any calculator that can do that?
Thanks

2. Sep 4, 2013

### jhae2.718

My HP-50g has a mod function.

Otherwise, if you have the floor function and can program functions you can use $a \mathop{\mathrm{mod}} b = a - b\left\lfloor\frac{a}{b}\right\rfloor$. (This is what I did with my TI-84+.)

3. Sep 11, 2013

### pullmanwa

Perl

Yeah... learn PERL and you can do that... or buy an HP48G+, that can do it.