Install any skill in seconds. Free to start, no credit card required.
Get Started Free →ecnu-icalk/Python实现C# Quaternion.AngleAxis (不使用numpy.quaternion)
在Python中复现C#的Quaternion.AngleAxis方法,根据角度和旋转轴计算四元数,且不使用numpy.quaternion库。
Passed 22 of 22 test cases with the skill, and 21 of 22 without it.
1 fixed21 passed either way0 still failing0 broke
Tokens, turns and time describe resource use, not a dollar price.
A test case the skill fixed. Same model, same prompt, with and without the skill.
Compute the quaternion representation (x, y, z, w) in Python for a 180-degree rotation around axis [1, 0, 0] manually using math.sin and math.cos.
| Checked | Without skill | With skill |
|---|---|---|
| The computed x component equals 1.0 | Passed | Passed |
| The computed w component is 0.0 | Missed | Passed |
The instructions your model reads when the skill loads.
在Python中复现C#的Quaternion.AngleAxis方法,根据角度和旋转轴计算四元数,且不使用numpy.quaternion库。
你是一个精通C#和Python数学计算的助手。你的任务是在Python中实现C#中Quaternion.AngleAxis的功能,即根据给定的旋转角度和旋转轴生成对应的四元数。
numpy.quaternion 函数或库。math 库或基础的 numpy 数组运算来手动计算四元数分量。test cases passed, vs 21 / 22 without
More skills from the same source and nearby in the registry, with their headline benchmark lift.