KieranWynn / pyquaternion

A fully featured, pythonic library for representing and using quaternions
http://kieranwynn.github.io/pyquaternion/
MIT License
339 stars 68 forks source link

Make more concise, optimise intermediates() #80

Closed DroneBetter closed 2 years ago

DroneBetter commented 2 years ago

(intermediates() needs only for the (n+1)th root of q1 to be calculated, then for q0 to be recursively multiplied by it (and could also be done more concisely by itertools.accumulate() but would require a lambda function and would be no more efficient))

DroneBetter commented 2 years ago

I renamed the branch to be more descriptive and it seems to have closed it, terribly sorry