I'm not yet able to get bizarroArithmetic to check anything yet. Whatever the student inputs, I get the message that WeBWorK can't generate enough valid points for comparison.
In my first attempt, I trimmed out what I believed should make no difference to the error, and here's what's left.
##DESCRIPTION
## Algebra problem: Rational exponents--incubation time vs mass of egg
##ENDDESCRIPTION
##KEYWORDS('algebra', 'root', 'radical', 'exponent', 'allometry')
## DBsubject(Algebra)
## DBchapter(Functions)
## DBsection(Roots and Radicals)
## Date('2/4/2018')
## Author('Yoshiwara')
## Institution('')
## TitleText1('Modeling, Functions, and Graphs')
## EditionText1('5')
## AuthorText1('Yoshiwara')
## Section1('3.4')
## Problem1('43')
########################################################################
DOCUMENT();
loadMacros(
"PGstandard.pl",
"PGunion.pl",
"imageChoice.pl",
"PGML.pl",
"bizarroArithmetic.pl",
);
Context()->flags->set(reduceConstants=>0);
Context()->flags->set(limits=>[1,2000]);
$f[0] = "-x^(1/3) / (x^(5/3)) ";
$f_display[0] = " \dfrac{ - x^{1/3}}{ x^{5/3} }";
$g[0] = Formula(" -1/x^{4/3} " );
Context()->operators->set(
'**' => {class => 'bizarro::BOP::power', isCommand => 1, perl=>undef},
'^' => {class => 'bizarro::BOP::power', isCommand => 1, perl=>undef},
);
Context()->flags->set(bizarroPow=>1);
BEGIN_PGML
a.
[` [$f_display[0]] =`][__________]
END_PGML
install_problem_grader(~~&std_problem_grader);
ANS($g[0] -> cmp());
ENDDOCUMENT();