{"action":"created","issue":{"url":"https://api.github.com/repos/supercollider/supercollider/issues/3621","repository_url":"https://api.github.com/repos/supercollider/supercollider","labels_url":"https://api.github.com/repos/supercollider/supercollider/issues/3621/labels{/name}","comments_url":"https://api.github.com/repos/supercollider/supercollider/issues/3621/comments","events_url":"https://api.github.com/repos/supercollider/supercollider/issues/3621/events","html_url":"https://github.com/supercollider/supercollider/issues/3621","id":310311812,"number":3621,"title":"the behavours of **2 and .pow(2)","user":{"login":"prko","id":416281,"avatar_url":"https://avatars1.githubusercontent.com/u/416281?v=4","gravatar_id":"","url":"https://api.github.com/users/prko","html_url":"https://github.com/prko","followers_url":"https://api.github.com/users/prko/followers","following_url":"https://api.github.com/users/prko/following{/other_user}","gists_url":"https://api.github.com/users/prko/gists{/gist_id}","starred_url":"https://api.github.com/users/prko/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/prko/subscriptions","organizations_url":"https://api.github.com/users/prko/orgs","repos_url":"https://api.github.com/users/prko/repos","events_url":"https://api.github.com/users/prko/events{/privacy}","received_events_url":"https://api.github.com/users/prko/received_events","type":"User","site_admin":false},"labels":[],"state":"open","locked":false,"assignee":null,"assignees":[],"milestone":null,"comments":2,"created_at":"2018-04-01T09:47:28Z","updated_at":"2018-04-02T08:44:07Z","closed_at":null,"author_association":"NONE","body":"Hi, according to the help document:\r\n\r\n> **\r\n> Exponentiation. When used with UGens which produce a negative signal this function extends the usual definition of exponentiation and returns neg(neg(a) ** b). This allows exponentiation of negative signal values by noninteger exponents. For the normal behaviour use pow (see below).\r\n> \r\n> pow\r\n> Exponentiation.\r\n\r\nHowever, evaluating the following code\r\n```supercollider\r\n{[SinOsc.ar**2, SinOsc.ar.pow(2)]}.plot\r\n```\r\nreturns the same result of both operators.\r\nI am confused because it seems that `SinOsc.ar.pow(2)` does not work according to the help document.\r\nThe following expression:\r\n\r\n> For the normal behaviour use pow\r\n\r\nmeans that .pow(2) does not produce negative values. Doesn't it?\r\n\r\nbest,\r\nprko"},"comment":{"url":"https://api.github.com/repos/supercollider/supercollider/issues/comments/377886465","html_url":"https://github.com/supercollider/supercollider/issues/3621#issuecomment-377886465","issue_url":"https://api.github.com/repos/supercollider/supercollider/issues/3621","id":377886465,"user":{"login":"telephon","id":1810559,"avatar_url":"https://avatars1.githubusercontent.com/u/1810559?v=4","gravatar_id":"","url":"https://api.github.com/users/telephon","html_url":"https://github.com/telephon","followers_url":"https://api.github.com/users/telephon/followers","following_url":"https://api.github.com/users/telephon/following{/other_user}","gists_url":"https://api.github.com/users/telephon/gists{/gist_id}","starred_url":"https://api.github.com/users/telephon/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/telephon/subscriptions","organizations_url":"https://api.github.com/users/telephon/orgs","repos_url":"https://api.github.com/users/telephon/repos","events_url":"https://api.github.com/users/telephon/events{/privacy}","received_events_url":"https://api.github.com/users/telephon/received_events","type":"User","site_admin":false},"created_at":"2018-04-02T08:44:07Z","updated_at":"2018-04-02T08:44:07Z","author_association":"OWNER","body":"If you want to get past it, you can use complex power:\r\n\r\n```\r\na = Complex(-2, 0);\r\nb = a ** 2;\r\nb.real == 4\r\n```\r\n\r\nBut I see that one doesn't always want that, it's much less efficient …\r\n\r\n"}}
{"actor":{"display_login":"telephon"}}