Alec,
Try doing the following:
1) Copy the following code into
mathpiperide/src/library_apps/mathpiper4/src/org/mathpiper/test/test.mpi
(overwrite the code that is already in this file):
------------------
ProblemSolution()
{
Givens()
{
I~a := 10`mA;
R~a := 820`Ω;
I~b := 65`mA;
R~b := 100`Ω;
I~c := 130`μA;
R~c := 2.7`kΩ;
I~d := 24`mA;
R~d := 1.1`kΩ;
I~e := 800`mA;
R~e := 3.6`Ω;
}
Formulas()
{
f3~1 := Formula(I~I`A == V~V`V / R~R`Ω, Label:"3.1",
Page:"78", Subject:'V~V);
f3~1~a := Formula(f3~1, Label:"a", Substitutions:[I~I -> I~a,
V~V -> V~a, R~R -> R~a]);
f3~1~b := Formula(f3~1, Label:"b", Substitutions:[I~I -> I~b,
V~V -> V~b, R~R -> R~b]);
f3~1~c := Formula(f3~1, Label:"c", Substitutions:[I~I -> I~c,
V~V -> V~c, R~R -> R~c]);
f3~1~d := Formula(f3~1, Label:"d", Substitutions:[I~I -> I~d,
V~V -> V~d, R~R -> R~d]);
f3~1~e := Formula(f3~1, Label:"e", Substitutions:[I~I -> I~e,
V~V -> V~e, R~R -> R~e]);
}
V~a := EvaluateFormula(f3~1~a, V);
V~b := EvaluateFormula(f3~1~b, V);
V~c := EvaluateFormula(f3~1~c, mV);
V~d := EvaluateFormula(f3~1~d, V);
V~e := EvaluateFormula(f3~1~e, V);
}
-----------------
2) Open mathpiperide/src/library_apps/mathpiper4/src/org/mathpiper/test/InterpreterTest.java
in NetBeans, and run it by right clicking on it. This will run the
code in the .mpi file.
3) Add code to the .mpi file or to this Java file that will profile
the code that is in the .mpi file. The procedures I am hoping to
profile are the ones that are defined in
mathpiperide/src/library_apps/mathpiper4/src/org/mathpiper/scripts4/units/mpunits.mpws
and in mathpiperide/src/library_apps/mathpiper4/src/org/mathpiper/scripts4/units/mpunits_private.mpws.
4) Profile the code that is in the .mpi file, and let me know if any
of the units procedures are especially slow.
Ted
> To unsubscribe from this group and stop receiving emails from it, send an email to
mathpiper-de...@googlegroups.com.
> To view this discussion on the web visit
https://groups.google.com/d/msgid/mathpiper-dev/03c90961-2bf0-4266-81ed-31a40ff1f499%40googlegroups.com.