From: SourceForge.net <noreply@so...>  20031001 22:24:44

Bugs item #816166, was opened at 20031001 18:24 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=816166&group_id=4933 Category: None Group: None Status: Open Resolution: None Priority: 5 Submitted By: Stavros Macrakis (macrakis) Assigned to: Nobody/Anonymous (nobody) Summary: rectform/carg doesn't normalize exp(%i*n) (also asin, log) Initial Comment: carg(exp(%i*x)) => x (OK?) carg(exp(%i*10.0)) => 10.0 (No?) carg(exp(%i*%pi)) => %pi (OK) float(carg(exp(%i*%pi))) => 3.14 (OK) carg(exp(%i*float(%pi))) => 3.14 (?) float(carg(asin(%i*10))) => 1.57 (OK) carg(asin(%i*10)),numer => 4.71 (No!) float(rectform(log(%i*10))) => 2.30  1.57*%I (OK) rectform(log(%i*10)),numer => 2.30+4.71*%I (No!) Presumably the principal values is what is wanted. I will correct that. This is related to the fact that carg(exp(%i*x)) doesn't normalize x to (pi,pi] when x is not an explicit multiple of pi: carg(exp(%i*10)) => 10 carg(exp(%i*x)) => x but carg(exp(%i*(3*%pix))) => %pix How far should this go? I think it's pretty clear for the float/bfloat case, but how about carg(exp(%i*10))? Should that really return 104*%pi? Currently, it goes the other way around!: exp(%i*(104*%pi)) actually simplifies to exp(%i*10)....  You can respond by visiting: https://sourceforge.net/tracker/?func=detail&atid=104933&aid=816166&group_id=4933 