Google Groups no longer supports new Usenet posts or subscriptions. Historical content remains viewable.
Dismiss

How to clear OverBar[p]

33 views
Skip to first unread message

Martin Richter

unread,
Aug 1, 2001, 2:18:46 AM8/1/01
to
Hi

Using Mathematica 4.1 I want to Clear the Variable OverBar[p]. I have tried
all suggestions comming from the thread: Re: Clear or remove definitions
including Subscripts but this does not work here :-(

TIA
Martin

---------------------------------------
Please remove PET to reply by email

Jens-Peer Kuska

unread,
Aug 2, 2001, 3:21:45 AM8/2/01
to

Hi,

In[]:=OverBar[x]=.


?

Work fine for me.

Regards
Jens

Albert Retey

unread,
Aug 2, 2001, 3:23:51 AM8/2/01
to
Hi,

Try Unset[Overbar[p]] , it should do what you want, but be aware that
Unset und Clear do not do exactly the same, but for just getting rid of
a value that you have set by
Overbar[p] = value
Unset should do the job.

Albert

Martin Richter

unread,
Aug 2, 2001, 3:29:59 AM8/2/01
to
Hi

Thanks for the help and reply. From the thread mention earlier I just have
the impression just to write

Overbar[p]

and not

Use Unset
Overbar[p]

One of many stupid mistakes,
Martin

"Martin Richter" <mrMI...@cbs.dk> wrote in message
news:9k8706$3kk$1...@smc.vnet.net...

Martin Richter

unread,
Aug 2, 2001, 3:31:00 AM8/2/01
to
Sorry, I have just one more question.

Normally I clear variables before assigning values so no mistakes are made.
But the

Use Unset
Overbar[p]

only works when Overbar[p] has assigned a value otherwise you will get an
error/warning. Is there a way to avoid this, like asking if a variable is
already assigned a value.

TIA
Martin


"Martin Richter" <mrMI...@cbs.dk> wrote in message news:...

Orestis Vantzos

unread,
Aug 3, 2001, 1:07:04 AM8/3/01
to
Yes, ValueQ will return True if there is a definition for the variable.
Orestis

"Martin Richter" <mrMI...@cbs.dk> wrote in message

news:9kavjk$c2n$1...@smc.vnet.net...

0 new messages