Posts

Showing posts from January 16, 2019

Revising a sentence to make it more clear

Image
0 I'm making revisions on a book from an archaeological museum. As I was reading through, this sentence stroke me as a bit odd and I need your help correcting it. Pottery shaped as horses, ducks, boats, wheels, horns, houses, and shoes were excavated from Silla burials, as were vessels with human and animal figurines attached and pottery with geomatric designs. I'm not quite sure what the author meant by as were vessels with human and animal figurines attached and pottery with geometric designs. Here's a revision I made: "Pottery shaped as horses, ducks, boats, wheels, horns, houses, and shoes were excavated from Silla burials, so were vessels with human and animal figurines attached and pottery with geometric designs." My question is: Is the original sentence gram

Convert a double to a string containing rational and surd

Image
3 $begingroup$ First off, code: string FracSurd(double value) { //A C# 7 local function double GCD(double a, double b) { while (b > 0) { var rem = a % b; a = b; b = rem; } return a; } for (int i = 0; i <= 1e6; i++) { var SubjectToTest = value / Math.Sqrt(i); for (var denom = 1.0; denom <= 500; denom++) { var numer = Math.Round(SubjectToTest * denom); if (SubjectToTest - numer / denom == 0) { int Square = 1, a = i; for (int b = 2; a > 1; b++) if (a % b == 0) { int x = 0; while (a % b == 0)