What the result of ti.sqr(x)(x is a vector) if any element of x is negative

As title, I was studying one demo code(diffmpm.py) with the computation:0.75 - ti.sqr(fx - 1). fx is 2 by 1 vector and it may have negative values.

Sorry about the confusion. sqr is square instead of square root (ti.sqrt).

Yeah, I just found it. Thank you very much for answering my question. Taichi is a very powerful tool for the whole robotics community.

1 Like

Update: to avoid confusion we have removed ti.sqr. Thanks for reporting this!