help-octave
[Top][All Lists]
Advanced

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

Re: Variable names


From: c.
Subject: Re: Variable names
Date: Wed, 18 Jun 2008 17:37:11 +0200


On 18/giu/08, at 15:51, asha g wrote:

This question might seem very trivial to some - but it is important to me - so I am asking.
Can octave distinguish between variables named :

alpha and alphan or alpha1?
h and hd ?
V and vvvv?
m and mmmm?
minf and mInf-

Yes it can:

>> alpha = 0
alpha = 0
>> alpha1
error: `alpha1' undefined near line 2 column 1
>> alphan
error: `alphan' undefined near line 2 column 1
>> h = 0
h = 0
>> hd
error: `hd' undefined near line 3 column 1
>> V = 1
V =  1
>> vvv
error: `vvv' undefined near line 4 column 1
>> m = 1
m =  1
>> mmm
error: `mmm' undefined near line 5 column 1

If you find an example where this does not happen, it is most likely a bug...

will it have doubts abt Inf and machine Inf ?

I don't understand what you mean here...

Thanks
Asha

c.



reply via email to

[Prev in Thread] Current Thread [Next in Thread]