Yes I have. off echo, fancy,raise,lower; load_package scope; depend(DvDX, x4, x11); J := DuDY*DvDX*DwDZ - DuDX*DvDZ*DwDY + DuDX*DvDY*DwDZ$ I1bar := 1/J^k; off nat; on echo$ optimize DI1barDx11 :=: df(I1bar,x11), DI1barDx4 :=: df(I1bar,x4); end; Output (excerpt): ... g13 := g5*DuDX$ g14 := DwDY*DvDZ$ g16 := DvDY*DwDZ$ g5 := (g11 + DuDX*(g16 - g14))**k$ ... g5 is now the erring term.
Yes I have. off echo, fancy,raise,lower; load_package scope; depend(DvDX, x4, x11); J := DuDY*DvDX*DwDZ - DuDX*DvDZ*DwDY + DuDX*DvDY*DwDZ$ I1bar := 1/J^k; off nat; on echo$ optimize DI1barDx11 :=: df(I1bar,x11), DI1barDx4 :=: df(I1bar,x4); end; Output (excerpt): ... g13 := g5*DuDX$ g14 := DwDY*DvDZ$ g16 := DvDY*DwDZ$ g5 := (g11 + DuDX*(g16 - g14))**k$ ...
I found a hack. The problem seems to be arise with the divisor in the quotient rule, therefore I optimized it separately as shown below: optimize DI1barDx11_ :=: (J^k*df(I1, x11) - I1*df(J^k, x11)), %/J^(2*k), DI1barDx4_ :=: (J^k*df(I1, x4) - I1*df(J^k, x4)), %/J^(2*k), den :=: J^(2*k); No undefined g10 term appears in this case.
The g10 problem only appears when J has an exponent. No such problem occurs when I1bar := I1/J;
I take that back. Problem not solved. I now have a situation where g10 is referenced before it is defined g209 := g882*g10$ g211 := g881*g10$ g926 := g924*j$ g213 := g926*g10$ g525 := g13*g10$ g928 := g1174*g10$ ... % skip eight lines g10 := ((g1441 + g1381 + g1059 - g1437*DvDX + g1210*DwDZ)/g13)**k$
Reduce references undefined term.
Most viewers that I have come across only support meshes. I am looking for a viewer that can display: Points (I'm willing to compromise on this) Lines Faces Curves (2D and 3D splines), and Surfaces (BURBS) Collada too apparently supports these primitives but most viewers will only display a subset of them. I am open to any formats for which GLC-Player can display these primitives.
Egg on my face, I got this wrong.