{"action":"opened","issue":{"url":"https://api.github.com/repos/tbeu/Modelica/issues/1421","repository_url":"https://api.github.com/repos/tbeu/Modelica","labels_url":"https://api.github.com/repos/tbeu/Modelica/issues/1421/labels{/name}","comments_url":"https://api.github.com/repos/tbeu/Modelica/issues/1421/comments","events_url":"https://api.github.com/repos/tbeu/Modelica/issues/1421/events","html_url":"https://github.com/tbeu/Modelica/issues/1421","id":197593693,"number":1421,"title":"Sign error in derivative of SmoothPower","user":{"login":"modelica-trac-importer","id":22202507,"avatar_url":"https://avatars.githubusercontent.com/u/22202507?v=3","gravatar_id":"","url":"https://api.github.com/users/modelica-trac-importer","html_url":"https://github.com/modelica-trac-importer","followers_url":"https://api.github.com/users/modelica-trac-importer/followers","following_url":"https://api.github.com/users/modelica-trac-importer/following{/other_user}","gists_url":"https://api.github.com/users/modelica-trac-importer/gists{/gist_id}","starred_url":"https://api.github.com/users/modelica-trac-importer/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/modelica-trac-importer/subscriptions","organizations_url":"https://api.github.com/users/modelica-trac-importer/orgs","repos_url":"https://api.github.com/users/modelica-trac-importer/repos","events_url":"https://api.github.com/users/modelica-trac-importer/events{/privacy}","received_events_url":"https://api.github.com/users/modelica-trac-importer/received_events","type":"User","site_admin":false},"labels":[{"id":506762997,"url":"https://api.github.com/repos/tbeu/Modelica/labels/bug","name":"bug","color":"ee0701","default":true},{"id":506769262,"url":"https://api.github.com/repos/tbeu/Modelica/labels/L:Fluid.Dissipation","name":"L:Fluid.Dissipation","color":"0000aa","default":false}],"state":"open","locked":false,"assignee":{"login":"beutlich","id":14896695,"avatar_url":"https://avatars.githubusercontent.com/u/14896695?v=3","gravatar_id":"","url":"https://api.github.com/users/beutlich","html_url":"https://github.com/beutlich","followers_url":"https://api.github.com/users/beutlich/followers","following_url":"https://api.github.com/users/beutlich/following{/other_user}","gists_url":"https://api.github.com/users/beutlich/gists{/gist_id}","starred_url":"https://api.github.com/users/beutlich/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/beutlich/subscriptions","organizations_url":"https://api.github.com/users/beutlich/orgs","repos_url":"https://api.github.com/users/beutlich/repos","events_url":"https://api.github.com/users/beutlich/events{/privacy}","received_events_url":"https://api.github.com/users/beutlich/received_events","type":"User","site_admin":false},"assignees":[{"login":"beutlich","id":14896695,"avatar_url":"https://avatars.githubusercontent.com/u/14896695?v=3","gravatar_id":"","url":"https://api.github.com/users/beutlich","html_url":"https://github.com/beutlich","followers_url":"https://api.github.com/users/beutlich/followers","following_url":"https://api.github.com/users/beutlich/following{/other_user}","gists_url":"https://api.github.com/users/beutlich/gists{/gist_id}","starred_url":"https://api.github.com/users/beutlich/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/beutlich/subscriptions","organizations_url":"https://api.github.com/users/beutlich/orgs","repos_url":"https://api.github.com/users/beutlich/repos","events_url":"https://api.github.com/users/beutlich/events{/privacy}","received_events_url":"https://api.github.com/users/beutlich/received_events","type":"User","site_admin":false}],"milestone":null,"comments":0,"created_at":"2016-12-26T14:33:42Z","updated_at":"2016-12-26T14:33:42Z","closed_at":null,"body":"**Reported by ivar&#46;torstensson on 14 Feb 2014 11:29 UTC**\nThere is a sign error in Modelica.Fluid.Dissipation.Utilities.Functions.General.SmoothPower_der. The algorithm states\n```\ndy := -dx*pow*(-x)^(pow - 1);\n```\nwhen x is less than the lower threshold, but should say \n```\ndy := dx*pow*(-x)^(pow - 1);\n```\n\n\nAlso, obviously the deltax and pow inputs are assumed to be constant. Shouldn't Modelica.Fluid.Dissipation.Utilities.Functions.General.SmoothPower annotate its derivative with zeroDerivative for those variables?\n\n----\n\nMigrated-From: https://trac.modelica.org/Modelica/ticket/1421"}}
{"actor":{"display_login":"modelica-trac-importer"}}