On Sat, 18 Aug 2018 09:10:59 -0700, sobriquet wrote:
> On Saturday, August 18, 2018 at 5:47:51 PM UTC+2, sobriquet wrote:
>> On Saturday, August 18, 2018 at 5:14:25 PM UTC+2, konyberg wrote:
>> > lørdag 18. august 2018 11.34.14 UTC+2 skrev sobriquet følgende:
>> > > On Saturday, August 18, 2018 at 10:03:07 AM UTC+2, konyberg wrote:
>> > > > lørdag 18. august 2018 01.49.09 UTC+2 skrev sobriquet følgende:
>> > > > > Am I overlooking something or is it not possible to convert
>> > > > > complex numbers from rectangular to polar form on Wolfram
>> > > > > Alpha?
>> > > > >
https://www.wolframalpha.com/examples/mathematics/numbers/
complex-numbers/
>> > > > > I know how to do it manually, like a+ib would be sqrt(a^2+b^2)
>> > > > > ∠ arctan(b/a), but is there no convenient formalism for this?
...
>> > > But what if I have it in polar form and I want to see it in
>> > > rectangular form?
>> > > Or what if I have two numbers in polar form and I want to do some
>> > > calculations with them without converting them to rectangular form?
...
>> For instance, if I enter 2+3i, it will tell me that it's r = sqrt(13)
>> (radius), θ = (180 tan^(-1)(3/2))/π° (angle), but when I enter that
>> back as an input, it tells me it doesn't understand the input.
>>
>> Normally, when Wolfram Alpha gives some kind of output, it usually able
>> to understand it as an input as well so you can use the output of one
>> computation as an input for another computation.
>
https://i.imgur.com/i57F8bl.png
>
> I'd expect Wolfram Alpha to do something basic like being able to
> recognize a complex number in polar form, so I'm just wondering if there
> is some special trick to enter complex numbers in polar form (for
> instance if you want to convert a complex number from polar to
> rectangular form).
The Wolfram Alpha functions "FromPolarCoordinates — convert from {r,θ}
to {x,y}" and "ToPolarCoordinates — convert from {x,y} to {r,θ}" can do
the arithmetic for you. Also see AbsArg[c] which converts a complex
number to polar form. To get from a complex number a+bi to a tuple or
list form {a,b} ReIm[p+qi] returns {p,q}. To get from {p,q} to p+qi,
you could say {p,q}[[1]]+i{p,q}[[2]] . You could define user functions
to wrap some of this up more neatly; see
<
http://reference.wolfram.com/language/tutorial/DefiningFunctions.html>
--
jiw