comparing Formulas in Fraction context
Los mantenedores suelen responder en 4 días
Nadie ha tomado este issue todavía.
Evaluación
- Dificultad
- 5/5
- Tiempo estimado
- Más de una semana
- Aptitud para principiantes
- 38/100
Línea de trabajo
Start by reading the Fraction context and formula comparison code; the issue names contextFraction.pl and PGstandard.pl, but gives no source file or test for the comparison behavior. Reproduce the example in a PG problem and trace how test points and formula outputs are compared. Done means deciding and implementing the expected comparison semantics for formulas in Fraction context, with tests covering the example.
Escrito por el modelo de indexación a partir del texto del issue.
Descripción
Consider the problem:
DOCUMENT();
loadMacros(qw(PGstandard.pl PGML.pl contextFraction.pl));
Context("Fraction");
$Ap = Formula("270 + 7/80 x");
BEGIN_PGML
[_]{$Ap}
The answer is supposed to be [`[$Ap]`].
But something like [|270 + 0.1 x|]* is accepted.
END_PGML
ENDDOCUMENT();
The issue is described in the text of the problem. I am guessing that relative error tolerance is in effect, and for test points, 270+0.1x and 270+7/80x are equivalent. So maybe I should adjust the tolerance settings on the exercise that gave rise to this concern.
However, I thought it reasonable that in Fraction context, that we could do like:
- the test points are random fractions, not random floating points.
- the output from each formula is cast as a fraction (in the same way that 3.14159265359 becomes 245850922/78256779)
- comparison is done as with non-formula Fraction objects; either they are equal as fractions, or not.
Would that be reasonable?
- Lenguaje dominante
- Perl
- Estrellas
- 48
- Forks
- 78
- Merge medio
- 5 d 13 h
- PR fusionados (30 d)
- 9
Preparar el entorno
Este proyecto no incluye contenedor de desarrollo, Dockerfile ni guía de contribución, así que la configuración corre por tu cuenta: empieza por su README y consulta nuestra guía para la primera contribución para los pasos generales.
Primeros pasos
- Lee el issue completo y luego la guía de contribución del proyecto.
- Comenta en el issue que vas a ocuparte — evita que dos personas hagan lo mismo.
- Haz un fork del repositorio y trabaja en una rama.
- Abre un pull request que haga referencia al número del issue.
Más de openwebwork/pg
-
Dificultad 3/5 1-2 días Aptitud para principiantes 48/100
openwebwork/pg#1566 · 5 comentarios ·
Los mantenedores suelen responder en 4 días
-
Dificultad 4/5 1-2 días Aptitud para principiantes 50/100
openwebwork/pg#1560 · 10 comentarios ·
Los mantenedores suelen responder en 4 días
-
Dificultad 5/5 Más de una semana Aptitud para principiantes 12/100
openwebwork/pg#1542 · 1 comentario ·
Los mantenedores suelen responder en 4 días
-
Dificultad 4/5 3-5 días Aptitud para principiantes 25/100
openwebwork/pg#1530 · 3 comentarios ·
Los mantenedores suelen responder en 4 días
-
Dificultad 3/5 1-2 días Aptitud para principiantes 50/100
openwebwork/pg#1483 · 8 comentarios ·
Los mantenedores suelen responder en 4 días
Todos los issues de openwebwork/pg
Issues similares
-
Dificultad 2/5 1-3 horas Aptitud para principiantes 65/100
openwebwork/webwork2#3295 ·
Los mantenedores suelen responder en 4 días
-
nftables: "Display comment in rules list?" option has no effect, comments not shown in rules listAbierto
Dificultad 2/5 1-3 horas Aptitud para principiantes 78/100
Los mantenedores suelen responder en 1 día
-
Type: Bug
Dificultad 2/5 1-3 horas Aptitud para principiantes 76/100
inverse-inc/packetfence#9707 ·
Los mantenedores suelen responder en 1 día
-
Mailaddress phrase quotingAbierto
Dificultad 2/5 1-3 horas Aptitud para principiantes 67/100
RotherOSS/otobo#6457 · 2 comentarios ·
Los mantenedores suelen responder en 1 día
-
The reply-to for the pro user signup emails should be the email of the user instrad of the contact@ emailPosiblemente ocupada @sisodiaumang la tomó hoy. Abierto🏭 producer platform - spam
Dificultad 2/5 1-3 horas Aptitud para principiantes 66/100
openfoodfacts/openfoodfacts-server#15447 ·
Los mantenedores suelen responder en 1 día