Quantcast
Channel: Active questions tagged units - Mathematica Stack Exchange
Viewing all articles
Browse latest Browse all 41

ToPolarCoordinates not working with units

$
0
0

I am trying to convert some quantities with units from rectangular to polar coordinates (to get the magnitude and angle). It seems that ToPolarCoordinates command does not calculate the angle when units are present. Does anyone have a solution to this (other than removing the units)?

N1 = Quantity[1.0, "Newtons"];N2 = Quantity[2.0, "Newtons"];ToPolarCoordinates[{N1, N2}]

The output is:

enter image description here

M1 = 1.0;M2 = 2.0;ToPolarCoordinates[{M1, M2}]

The output is:

enter image description here


Viewing all articles
Browse latest Browse all 41

Trending Articles



<script src="https://jsc.adskeeper.com/r/s/rssing.com.1596347.js" async> </script>