update C implementation of hyperelasticity for 1D