[線代] solving linear system

看板Math作者 (yshihyu)時間14年前 (2011/05/17 02:55), 編輯推噓0(000)
留言0則, 0人參與, 最新討論串1/1
/* Calculates coefficients of affine transformation * which maps (xi,yi) to (ui,vi), (i=0,1,2): * * ui = c00*xi + c01*yi + c02 * * vi = c10*xi + c11*yi + c12 * * Coefficients are calculated by solving linear system: * / x0 y0 1 0 0 0 \ /c00\ /u0\ * | x1 y1 1 0 0 0 | |c01| |u1| * | x2 y2 1 0 0 0 | |c02| |u2| * | 0 0 0 x0 y0 1 | |c10| |v0| * | 0 0 0 x1 y1 1 | |c11| |v1| * \ 0 0 0 x2 y2 1 / |c12| |v2| * * where: * cij - matrix coefficients */ 上面是 Ax = b 那個嗎? x未知 A跟b 已經是嘛? 請問這樣可以解出 c00 c01 c02 c10 c11 c12 六個未知數嗎? 謝謝 -- ※ 發信站: 批踢踢實業坊(ptt.cc) ◆ From: 122.117.174.134
文章代碼(AID): #1DqNCzmA (Math)