Sponsored links: Algebra eBooks
 

Related

equiv_classes

s:{1, 1.0, 2, 2.0, 3,...

equiv_classes(s,"<");

Calculate

equiv_classes-is-lambda

equiv_classes ({1, 1....

Calculate

equiv_classes-is-lambda

equiv_classes ({1, 1....

Calculate

equiv_classes

s:{1, 1.0, 2, 2.0, 3,...

equiv_classes(s,"<");

Calculate

equiv_classes

? equiv_classes;

Calculate

equiv_classes

s:{1, 1.0, 2, 2.0, 3,...

equiv_classes(s,"<");

Calculate

equiv_classes-is-lambda

equiv_classes ({1, 1....

Calculate

equiv_classes

Run Example
(%i1)equiv_classes ({1, 1.0, 2, 2.0, 3, 3.0}, equal);

rat: replaced 0.0 by 0/1 = 0.0

rat: replaced 1.0 by 1/1 = 1.0

rat: replaced 0.0 by 0/1 = 0.0

rat: replaced 1.0 by 1/1 = 1.0

rat: replaced 2.0 by 2/1 = 2.0

rat: replaced 0.0 by 0/1 = 0.0
(%o1)                   {{1, 1.0}, {2, 2.0}, {3, 3.0}}
(%i2) {{1, 1.0}, {2, 2.0}, {3, 3.0}};
(%o2)                   {{1, 1.0}, {2, 2.0}, {3, 3.0}}
(%i3) 
Run Example
equiv_classes({1,2,3,4,5,6,7},lambda([x,y], remainder((x+y)/3,3)=0));
(%o1)                      {{1}, {2, 3, 4, 5, 6, 7}}
(%i2) 
Run Example
s:{1, 1.0, 2, 2.0, 3, 3.0};
(%o1)                      {1, 1.0, 2, 2.0, 3, 3.0}
(%i2) equiv_classes(s,"=");
(%o2)                {{1}, {1.0}, {2}, {2.0}, {3}, {3.0}}
(%i3) 

Related Help

Help for Equiv_classes