How do I script simple math functions in OSL?
Never mind, looked at it again the next day and it was rather obvious.. just needed a break apparently

shader invrsquareroot(
    float x = 10.0,

    output float result = 0)
{
    result = inversesqrt(x);
}