Mathematica 9 is now available
Services & Resources / Wolfram Forums / MathGroup Archive
-----

MathGroup Archive 2012

[Date Index] [Thread Index] [Author Index]

Search the Archive

Re: Implicit Times

  • To: mathgroup at smc.vnet.net
  • Subject: [mg128637] Re: Implicit Times
  • From: "Dave Snead" <dsnead6 at charter.net>
  • Date: Sun, 11 Nov 2012 15:54:31 -0500 (EST)
  • Delivered-to: l-mathgroup@mail-archive0.wolfram.com
  • Delivered-to: l-mathgroup@wolfram.com
  • Delivered-to: mathgroup-newout@smc.vnet.net
  • Delivered-to: mathgroup-newsend@smc.vnet.net
  • References: <20121109000050.A731368E1@smc.vnet.net> <20121110070632.836E26951@smc.vnet.net>

Thanks, but the issue is not defining the operator.
The issue is Mathematica's implicit assumption of a Times (*) when there's a 
space between variables.
The NonCommutativeMultiply (**) already exists.

So when I input
x y//FullForm
I want Mathematica to return
NonCommutativeMultiply[x,y]
instead of
Times[x,y]

Of course I want the explicit Times (*) to
still work the same as before,
x*y//FullForm
yielding
Times[x,y]

--Dave Snead




-----Original Message----- 
From: James Stein
Sent: Friday, November 09, 2012 11:06 PM
To: mathgroup at smc.vnet.net
Subject: [mg128637] Re: Implicit Times


Read this Mathematica reference on "operators without built-in meanings".
I assume you could define, e.g., 'CircleTimes' to return whatever function
(including non-commutative multiply) you wish.

On Thu, Nov 8, 2012 at 4:00 PM, Dave Snead <dsnead6 at charter.net> wrote:

> Hi all,
>
> Mathematica assumes Times (*) when two expressions are
> juxtaposed with no explicit intervening binary operator
> (ex., x y is interpreted as x*y).
> I want to change this behavior so it assumes a
> NonCommutativeMultiply (**) instead.
> Is this possible?
>
> Thanks in advance,
> Dave Snead
>
>
> 





  • Prev by Date: ImageCapture::caminuse: Camera is already in use by Mathematica
  • Next by Date: Relational operators on intervals: bug?
  • Previous by thread: Re: Implicit Times
  • Next by thread: Re: Implicit Times