PS> .\convert-coordinates.ps1 8.2 3.1
Cartesian to polar: r = 8.76641317757725, phi = 1.20935543590134
In order to convert from poloar coordinates to cartesian coordinates, the non-default parameter set polarCoordinates is needed. This can be achieved by explicitly specifying (at least) one parameter name of a non-default parameter set:
PS> .\convert-coordinates.ps1 -r 7.8 -phi 3.4
Polar to cartesian: x = -7.5410259021198, y = -1.99322059580928
Conflicting parameter names:
PS> .\convert-coordinates.ps1 -r 6.6 -x 8.8
… Parameter set cannot be resolved using the specified named parameters. …