Mathematica 9 is now available
Services & Resources / Wolfram Forums
-----
 /
MathGroup Archive
2003
*January
*February
*March
*April
*May
*June
*July
*August
*September
*October
*November
*December
*Archive Index
*Ask about this page
*Print this page
*Give us feedback
*Sign up for the Wolfram Insider

MathGroup Archive 2003

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

Search the Archive

Re: Readability confuses mathematica?

  • To: mathgroup at smc.vnet.net
  • Subject: [mg44522] Re: Readability confuses mathematica?
  • From: "Steve Luttrell" <luttrell at _removemefirst_westmal.demon.co.uk>
  • Date: Thu, 13 Nov 2003 02:27:20 -0500 (EST)
  • References: <botcm2$ci7$1@smc.vnet.net>
  • Sender: owner-wri-mathgroup at wolfram.com

You need to use Symbolize in the Utilities`Notation` package.

First of all reproduce your problem:

In[2]:=
D[x - x\[UnderBracket]Subscript\[UnderBracket]0, x]
Out[2]=
1 - Derivative[1, 0][Subscript][x, 0]

Now read in the Utilities`Notation` package:

In[3]:=
<< "Utilities`Notation`"

Use Symbolize to make sure x\[UnderBracket]Subscript\[UnderBracket]0 is
treated as an independent symbol in its own right. You have to enter
Symbolize from the Notation palette to ensure that the appropriate bits and
pieces (i.e. the tag box) get entered correctly.

In[4]:=
Symbolize[NotationBoxTag[\(x\_0\)]]

Now evaluate your derivative again:
In[5]:=
D[x - x\[UnderBracket]Subscript\[UnderBracket]0, x]
Out[5]=
1

This is the answer you wanted.

--
Steve Luttrell
West Malvern, UK

"patrick_m_lahey" <patrick.m.lahey at aero.org> wrote in message
news:botcm2$ci7$1 at smc.vnet.net...
> I am new to mathematica so perhaps there is a simple answer to this
>
> Consider:
>
> In[1]:= D[x-x0,x]
>
> except that x0 is really x ctrl-- 0 (x subscript 0).  Normally that
> would be a completely independent variable from x but not according to
> mathematica!
>
> Out[1]=1-Subscript(1,0)[x,0]
>
> (the (1,0) is a superscript of Subscript).
>
> One of the things that attracted me to mathematica was the ability to
> work with expressions that closely mirrored the true expressions of
> interest (a readability issue really...).
>
> Is there anything that can be done here?
>



  • Prev by Date: Re: Simple Sum problem
  • Next by Date: Re: plotting streamlines from vector data
  • Previous by thread: RE: Readability confuses mathematica?
  • Next by thread: Re: Readability confuses mathematica?