Re: Quaternions
- To: mathgroup at smc.vnet.net
- Subject: [mg78200] Re: [mg78186] Quaternions
- From: Carl Woll <carlw at wolfram.com>
- Date: Mon, 25 Jun 2007 07:09:19 -0400 (EDT)
- References: <200706240949.FAA27504@smc.vnet.net>
Bruce Colletti wrote:
>Re Mathematica 6.0 under WinXP.
>
>The code below works as planned, except that a red marker appears between the final ) and ], announcing that more input is expected. I'm presuming that in this case, the marker can be ignored, but want to doublecheck with others.
>
>Thankx.
>
>Bruce
>
>
>Needs["Quaternions`"];
>w={3,4,5};
>u=w/Norm@w;
>Quaternion[Cos[Pi/4],Sequence@@(u Sin[Pi/4])]
>
>
>
The syntax checking code can only do syntax checking without evaluation.
In this case, before evaluating the arguments, it appears that
Quaternion only has 2 arguments, so that syntax checker complains.
Another similar example is
Binomial[Sequence @@ {4,2}]
Carl Woll
Wolfram Research
- References:
- Quaternions
- From: Bruce Colletti <vze269bv@verizon.net>
- Quaternions