Iβd like to remark that the similarities to mathematical notation or Haskell are a bit more limited than the previous comments might suggest. In maths or Haskell you give function signatures independent from the defining equation.
mathematical:
π: β€ β β€
π(π₯) = π₯Β² β 1
Haskell:
f :: Integer -> Integer
f x = x^2 - 1
Rust (although i64 is not quite all integers):
fn f(x: i64) -> i64 { x.pow(2) - 1 }
for the record, thereβs also (among even more other alternatives):
mathematical:
π: β€ β β€
π₯ β¦ π₯Β² β 1