Groups | Search | Server Info | Keyboard shortcuts | Login | Register [http] [https] [nntp] [nntps]


Groups > comp.soft-sys.math.mathematica > #13731

Re: Mathematica and Lisp

From Richard Fateman <fateman@eecs.berkeley.edu>
Newsgroups comp.soft-sys.math.mathematica
Subject Re: Mathematica and Lisp
Date 2013-03-06 10:54 +0000
Message-ID <kh779h$pvs$1@smc.vnet.net> (permalink)
References <kh4d3m$6vs$1@smc.vnet.net> <4997429.28227.1362539866570.JavaMail.root@m06> <001201ce1a1e$54a9fa90$fdfdefb0$@comcast.net>
Organization Time-Warner Telecom

Show all headers | View raw


On 3/5/2013 7:54 PM, djmpark wrote:
> Reverse the order of what? ArcTan of one argument has only one argument and
> how can that be reversed? What has two arguments is the coordinate
> specification {x, y} and they are not reversed in ArcTan[x, y].
>
> It is the one argument form ArcTan[y/x] that seems poorly designed and would
> probably only be used when one knows the quotient and not x and y - so there
> wouldn't be anything to reverse.
>
>
> David Park
> djmpark@comcast.net
> http://home.comcast.net/~djmpark/index.html
>
>
>
>
> From: Richard Fateman [mailto:fateman@cs.berkeley.edu]
>
>   (simple example:  why does Mathematica reverse the order of arguments to
> arctan of 2 args?)
>
> RJf
>
>
ArcTan[x,y]  in Mathematica gives the ArcTan[y/x] but in the correct 
quadrant.
atan2 (y,x) in FORTRAN gives the arctangent of y/x). Note the order of 
arguments.
             in C++
             in Pascal
             in Java
             in Lisp  (atan y x)
             in PHP
             in Python v 3.3.0
             in Ruby



I was able to find just one programming language that agrees with the 
order in Mathematica.
That is Microsoft's Excel. Now it could be that compatibility with Excel is
more important than compatibility with those other languages. Google 
docs has to
use the same order as Excel, but I think it is generally recognized as being
compatible with an error.
Just sayin'.
RJF








Back to comp.soft-sys.math.mathematica | Previous | Next — Previous in thread | Next in thread | Find similar | Unroll thread


Thread

Re: Mathematica and Lisp Bill Rowe <readnews@sbcglobal.net> - 2013-03-05 09:15 +0000
  Re: Mathematica and Lisp Richard Fateman <fateman@cs.berkeley.edu> - 2013-03-06 03:13 +0000
  Re: Mathematica and Lisp "djmpark" <djmpark@comcast.net> - 2013-03-06 10:54 +0000
  Re: Mathematica and Lisp Richard Fateman <fateman@eecs.berkeley.edu> - 2013-03-06 10:54 +0000
  Re: Mathematica and Lisp Christoph Lhotka <christoph.lhotka@univie.ac.at> - 2013-03-07 08:57 +0000
  Re: Mathematica and Lisp Murray Eisenberg <murray@math.umass.edu> - 2013-03-07 08:58 +0000
  Re: Mathematica and Lisp debguy <johnandsara2@cox.net> - 2013-04-02 07:26 +0000

csiph-web