← Back to team overview

yade-users team mailing list archive

Re: [Question #680725]: How to solve the issue 'a float is required' when using the mathfunction log

 

Question #680725 on Yade changed:
https://answers.launchpad.net/yade/+question/680725

    Status: Open => Answered

Robert Caulk proposed the following answer:
Hello,

O.cell.trsf returns the transformation matrix [1]. O.cell.trsf[1], as
you have written, returns a vector from the matrix. The function
math.log() cannot take a vector as an argument. If you are looking for
eyy, I guess you would use O.cell.trsf[1,1] to index the float from the
matrix.

Cheers,

Robert

[1]https://yade-
dev.gitlab.io/trunk/yade.wrapper.html#yade.wrapper.Cell.trsf

-- 
You received this question notification because your team yade-users is
an answer contact for Yade.