{"action":"opened","issue":{"url":"https://api.github.com/repos/chebfun/chebfun/issues/1832","repository_url":"https://api.github.com/repos/chebfun/chebfun","labels_url":"https://api.github.com/repos/chebfun/chebfun/issues/1832/labels{/name}","comments_url":"https://api.github.com/repos/chebfun/chebfun/issues/1832/comments","events_url":"https://api.github.com/repos/chebfun/chebfun/issues/1832/events","html_url":"https://github.com/chebfun/chebfun/issues/1832","id":150116839,"number":1832,"title":"Bug with complex spherefun objects ","user":{"login":"ajt60gaibb","id":1814063,"avatar_url":"https://avatars.githubusercontent.com/u/1814063?v=3","gravatar_id":"","url":"https://api.github.com/users/ajt60gaibb","html_url":"https://github.com/ajt60gaibb","followers_url":"https://api.github.com/users/ajt60gaibb/followers","following_url":"https://api.github.com/users/ajt60gaibb/following{/other_user}","gists_url":"https://api.github.com/users/ajt60gaibb/gists{/gist_id}","starred_url":"https://api.github.com/users/ajt60gaibb/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/ajt60gaibb/subscriptions","organizations_url":"https://api.github.com/users/ajt60gaibb/orgs","repos_url":"https://api.github.com/users/ajt60gaibb/repos","events_url":"https://api.github.com/users/ajt60gaibb/events{/privacy}","received_events_url":"https://api.github.com/users/ajt60gaibb/received_events","type":"User","site_admin":false},"labels":[{"url":"https://api.github.com/repos/chebfun/chebfun/labels/bug","name":"bug","color":"fc2929"},{"url":"https://api.github.com/repos/chebfun/chebfun/labels/spherefun","name":"spherefun","color":"c2e0c6"}],"state":"open","locked":false,"assignee":null,"milestone":null,"comments":0,"created_at":"2016-04-21T15:58:06Z","updated_at":"2016-04-21T15:58:06Z","closed_at":null,"body":"If I try to make a complex-valued spherefun, then the `spherefun` constructor makes the function real. For example, \r\n```\r\nf = spherefun( @(x,y,z) x+1i*y);\r\nf(.4,.1,sqrt(1-.1^2-.4^2))\r\nans =\r\n   0.4000 - 0.0000i\r\n```\r\n"}}