PrettyPasta

paste service with Markdown and LaTeX support

Feel free to edit this example. It'll automatically create a new paste for you.

Source code examples

All snippets here implement this mathematical function:

\[ f(t) = 1 - e^{-\lambda t} \]

Python

import math

def f(t, lambda):
    return 1 - math.exp(-lambda*t)

PHP

function f($t, $lambda) {
    return 1 - exp(-$lambda*$t);
}