This is a Ruby tree! It shows every object from the Ruby Programming Language in a tree format.

polar

        # Complex.polar

(from ruby core)
---
    Complex.polar(abs[, arg])  ->  complex

---

Returns a complex object which denotes the given polar form.

    Complex.polar(3, 0)            #=> (3.0+0.0i)
    Complex.polar(3, Math::PI/2)   #=> (1.836909530733566e-16+3.0i)
    Complex.polar(3, Math::PI)     #=> (-3.0+3.673819061467132e-16i)
    Complex.polar(3, -Math::PI/2)  #=> (1.836909530733566e-16-3.0i)


(from ruby core)
---
    cmp.polar  ->  array

---

Returns an array; [cmp.abs, cmp.arg].

    Complex(1, 2).polar  #=> [2.23606797749979, 1.1071487177940904]



      

This is MURDOC! A Ruby documentation browser inspired by Smalltalk-80. It allows you to learn about Ruby by browsing through its class hierarchies, and see any of its methods.