Tresca calculation converted and checked