From: SourceForge.net <no...@so...> - 2007-04-05 13:51:10
|
Bugs item #1694983, was opened at 2007-04-05 08:51 Message generated for change (Tracker Item Submitted) made by Item Submitter You can respond by visiting: https://sourceforge.net/tracker/?func=detail&atid=104933&aid=1694983&group_id=4933 Please note that this message will contain a full copy of the comment thread, including the initial issue submission, for this request, not just the latest update. Category: Share Libraries Group: Includes proposed fix Status: Open Resolution: None Priority: 5 Private: No Submitted By: Tarn Weisner Burton (twburton) Assigned to: Nobody/Anonymous (nobody) Summary: rational doesn't work Initial Comment: rational in funcs.mac doesn't appear to work. For instance "rational((3+2*%i)/(1+2*%i))" returns "(2*%i+3)/(2*%i+1)" This appears to be related to this: (%i1) a:(1+2*%i)/(1+%i); (%o1) (2*%i+1)/(%i+1) (%i2) conjugate(ratdenom(a)); (%o2) conjugate(%i+1) (%i3) ratsimp(%); (%o3) 1-%i conjugate appears to need an additional ratsimp. A fix for rational is to insert ratsimp, i.e. change n:ratdisrep(ratnumer(z)*(cd:conjugate(d:ratdenom(z)))), to n:ratdisrep(ratnumer(z)*(cd:ratsimp(conjugate(d:ratdenom(z))))), This probably just a kludge. Maybe conjugate is broken? ---------------------------------------------------------------------- You can respond by visiting: https://sourceforge.net/tracker/?func=detail&atid=104933&aid=1694983&group_id=4933 |