integer part and triples test for symmetry

Ben Abbott bpabbott at mac.com
Wed Mar 26 19:17:46 CDT 2008


On Mar 26, 2008, at 8:00 PM, george brida wrote:
> Dear friends,
> I am new user of Octave. I have two question:
> 1) is there any code in Octave or Matlab that performs the integer  
> part (symbol [x], i.e the greatest in teger smaller than x). I know  
> that in matlab there are built-in functions that compute the nearst  
> integer like int8,int16 and int64: we have int64(9.7)=10 but I would  
> like obtain [9.7]=9 and int64(-9.2)=-9 but [-9.2]=-10.

	ceil(x)

for the lesser integer, use floor(x)

> 2) is there any cod that computes the triples test for symmetry.
> Thank you in advance for your help and cordially.

Personally, I do not know what you refer to. Can give us a link to a  
definition?

Ben



More information about the Help-octave mailing list