[sage-support] Simplifying symbolic expression with radicals

2017-10-16 Thread Emily G
Hello, I am trying to find out whether I can get Sage to simplify expressions such as these (and other radicals that are not square root): (*2* + sqrt(*2*))/(*1* + sqrt(*2*)) The above example should simplify to sqrt(2), but simplify_full() and canonicalize_radical() don't work. Is there a wa

[sage-support] labeling vertices of polyhedron

2017-11-03 Thread Emily G
Is it possible to add vertex labels when I plot Polyhedron? For example, below is my code for displaying a polytope, and I would like to be able to see the labels (1,1,1), (1,1,2), etc for all the corresponding vertices. (I am doing this in CoCalc) f=[ [1,1,1], [ 1,1,2 ], [ 1,2,1 ], [ 1,2,3 ],