ok,thank you!
indeed,my triangle is relly big,around 1000 per line...maybe it`s the reason.
after cos() and sinv(),the hight`s value goes wrong i think