joseparnau

0 Reputation

3 Badges

13 years, 283 days

MaplePrimes Activity


These are answers submitted by joseparnau

hi,

it all works properly now.

there was no rand function because the error didn't come from it, so i posted a new code without the rand function.

the errors i got have vanished. can they be related to any problem in the maple server, like any updating or connection error?

josep

 

 

 

 

hi

hi, the problem i had posted the question for just solved "magically" on its own, so i kept working with no problem. suddenly, in another code, i got the same set of errors

wi

with the "?" simbols and the message "Error,

em

empty number". I have been thinking about maybe an updating about the license or something like that? can it be? otherwise i really have no idea about whats going on :(? maybe it justs solves on its own again, but now i cannot work on the code.

i

 post you the code next: it starts with "camp23Dp". sorry about the mess in the post, but seems my navigator has some format problems.

hi, > restart;
print(`output redirected...`); # input placeholder


> camp23Dp := proc( X,Y,r,tx,ty,tz,a,b,c,d) 

          description "obtain the points in 3D in the camera reference from que pixel position of the camera plane";           Vector([(b*X*tz*r[6]+b*X*r[9]*tx-b*r[9]*Y*tx-b*tz*Y*r[3]-b*tx*f*r[6]+b*r[3]*f*tx-c*r[2]*f*tx+c*r[8]*Y*tx+c*r[2]*tz*Y-c*r[8]*X*tx+c*r[5]*f*tx-c*r[5]*tz*X-d*r[8]*Y*r[3]+d*r[8]*X*r[6]-d*r[5]*r[9]*X+d*r[2]*r[9]*Y+d*r[2]*f*r[6]-d*r[5]*f*r[3])/(a*r[8]*Y*r[3]+r[2]*f*r[4]*c+r[1]*b*r[9]*Y-r[7]*X*b*r[6]-r[8]*Y*r[1]*c-r[5]*f*r[1]*c-r[4]*b*r[9]*X+r[7]*Y*b*r[3]-r[4]*f*b*r[3]-a*r[8]*X*r[6]+a*r[5]*r[9]*X-a*r[2]*r[9]*Y-a*r[2]*f*r[6]-r[2]*r[7]*Y*c+r[8]*X*r[4]*c+r[1]*f*b*r[6]+a*r[5]*f*r[3]+r[5]*r[7]*X*c),-(X*a*tz*r[6]+X*a*r[9]*tx+X*r[7]*c*tx-X*r[7]*d*r[6]-X*r[9]*r[4]*d-X*tz*r[4]*c-a*r[9]*Y*tx-a*tz*Y*r[3]-a*tx*f*r[6]+a*r[3]*f*tx+r[7]*d*Y*r[3]-r[7]*c*Y*tx-r[1]*f*c*tx+r[1]*f*d*r[6]+tz*Y*r[1]*c-r[3]*f*r[4]*d+tx*f*r[4]*c+r[9]*Y*r[1]*d)/(a*r[8]*Y*r[3]+r[2]*f*r[4]*c+r[1]*b*r[9]*Y-r[7]*X*b*r[6]-r[8]*Y*r[1]*c-r[5]*f*r[1]*c-r[4]*b*r[9]*X+r[7]*Y*b*r[3]-r[4]*f*b*r[3]-a*r[8]*X*r[6]+a*r[5]*r[9]*X-a*r[2]*r[9]*Y-a*r[2]*f*r[6]-r[2]*r[7]*Y*c+r[8]*X*r[4]*c+r[1]*f*b*r[6]+a*r[5]*f*r[3]+r[5]*r[7]*X*c),(-r[1]*f*b*tx+r[5]*f*r[1]*d+r[4]*f*b*tx+a*r[2]*f*tx-r[2]*f*r[4]*d+r[2]*r[7]*Y*d-r[8]*X*r[4]*d-a*r[8]*Y*tx+r[1]*b*tz*Y+r[7]*X*b*tx-r[4]*b*tz*X-r[5]*r[7]*X*d+r[8]*Y*r[1]*d-a*r[2]*tz*Y-r[7]*Y*b*tx+a*r[8]*X*tx-a*r[5]*f*tx+a*r[5]*tz*X)/(a*r[8]*Y*r[3]+r[2]*f*r[4]*c+r[1]*b*r[9]*Y-r[7]*X*b*r[6]-r[8]*Y*r[1]*c-r[5]*f*r[1]*c-r[4]*b*r[9]*X+r[7]*Y*b*r[3]-r[4]*f*b*r[3]-a*r[8]*X*r[6]+a*r[5]*r[9]*X-a*r[2]*r[9]*Y-a*r[2]*f*r[6]-r[2]*r[7]*Y*c+r[8]*X*r[4]*c+r[1]*f*b*r[6]+a*r[5]*f*r[3]+r[5]*r[7]*X*c) ]) 

        end proc: ;

print(`output redirected...`); # input placeholder
Error, empty number and  1 additional error.
camp23Dp Assign proc( XcommaYcommarcommatxcommatycommatzcommaa

  commabcommaccommad)Typesetting:-mambiguous(?,

  Typesetting:-merror(empty number))            description

  "obtain the points in 3D in the camera reference from que

   pixel position of the camera plane"semi           Vector(((b

  astXasttzastr(6) + bastXastr(9)asttx - bastr(9)astYasttx - bast

  tzastYastr(3)uminus0basttxastfastr(6) + bastr(3)astfasttx - c

  astr(2)astfasttx + castr(8)astYasttx + castr(2)asttzastY - cast

  r(8)astXasttx + castr(5)astfasttx - castr(5)asttzastX - dastr(8

  )astYastr(3) + dastr(8)astXastr(6)uminus0dastr(5)astr(9)astX +

  dastr(2)astr(9)astY + dastr(2)astfastr(6)uminus0dastr(5)astfast

  r(3))sol(aastr(8)astYastr(3) + r(2)astfastr(4)astc + r(1)astb

  astr(9)astY - r(7)astXastbastr(6)uminus0r(8)astYastr(1)astc - r

  (5)astfastr(1)astc - r(4)astbastr(9)astX + r(7)astYastbastr(3)

  uminus0r(4)astfastbastr(3)uminus0aastr(8)astXastr(6) + aastr(5)

  astr(9)astX - aastr(2)astr(9)astY - aastr(2)astfastr(6)uminus0r

  (2)astr(7)astYastc + r(8)astXastr(4)astc + r(1)astfastbastr(6)

   + aastr(5)astfastr(3) + r(5)astr(7)astXastc)commauminus0(Xasta

  asttzastr(6) + Xastaastr(9)asttx + Xastr(7)astcasttxuminus0Xast

  r(7)astdastr(6)uminus0Xastr(9)astr(4)astduminus0Xasttzastr(4)

  astcuminus0aastr(9)astYasttxuminus0aasttzastYastr(3)uminus0aast

  txastfastr(6) + aastr(3)astfasttx + r(7)astdastYastr(3)uminus0r

  (7)astcastYasttxuminus0r(1)astfastcasttx + r(1)astfastdastr(6)

   + tzastYastr(1)astcuminus0r(3)astfastr(4)astd + txastfastr(4)

  astc + r(9)astYastr(1)astd)sol(aastr(8)astYastr(3) + r(2)astf

  astr(4)astc + r(1)astbastr(9)astYuminus0r(7)astXastbastr(6)

  uminus0r(8)astYastr(1)astcuminus0r(5)astfastr(1)astcuminus0r(4)

  astbastr(9)astX + r(7)astYastbastr(3)uminus0r(4)astfastbastr(3)

  uminus0aastr(8)astXastr(6) + aastr(5)astr(9)astXuminus0aastr(2)

  astr(9)astYuminus0aastr(2)astfastr(6)uminus0r(2)astr(7)astYastc

   + r(8)astXastr(4)astc + r(1)astfastbastr(6) + aastr(5)astfastr

  (3) + r(5)astr(7)astXastc)comma(uminus0r(1)astfastbasttx + r(5)

  astfastr(1)astd + r(4)astfastbasttx + aastr(2)astfasttxuminus0r

  (2)astfastr(4)astd + r(2)astr(7)astYastduminus0r(8)astXastr(4)

  astduminus0aastr(8)astYasttx + r(1)astbasttzastY + r(7)astXastb

  asttxuminus0r(4)astbasttzastXuminus0r(5)astr(7)astXastd + r(8)

  astYastr(1)astduminus0aastr(2)asttzastYuminus0r(7)astYastbasttx

   + aastr(8)astXasttxuminus0aastr(5)astfasttx + aastr(5)asttzast

  X)sol(aastr(8)astYastr(3) + r(2)astfastr(4)astc + r(1)astbastr(

  9)astYuminus0r(7)astXastbastr(6)uminus0r(8)astYastr(1)astc

  uminus0r(5)astfastr(1)astcuminus0r(4)astbastr(9)astX + r(7)astY

  astbastr(3)uminus0r(4)astfastbastr(3)uminus0aastr(8)astXastr(6)

   + aastr(5)astr(9)astXuminus0aastr(2)astr(9)astYuminus0aastr(2)

  astfastr(6)uminus0r(2)astr(7)astYastc + r(8)astXastr(4)astc + r

  (1)astfastbastr(6) + aastr(5)astfastr(3) + r(5)astr(7)astXastc)

   ))Typesetting:-mambiguous(?, Typesetting:-merror(empty number))

           end proccolon
>

 

hi

 

 

 

 

 

Page 1 of 1