<p dir="auto">I have discovered an ErrorException which arises when calling sin() cos() tan() or similar mathematical functions from C via jl_eval_string()</p>
<p dir="auto">Strangely the degree variants work fine for those instances i.e sind() cosd() tand() however this isn't always the case. atand() for example also results in an error exception. Operators seem to work fine (1*1) for example.</p>
<p dir="auto">Simple repro case:</p>
<p dir="auto">jl_eval_string("sin(1.0)"); == ErrorException<br>
jl_eval_string("sind(1.0)"); == Works</p>
<div class="highlight highlight-source-julia notranslate position-relative overflow-auto" dir="auto" data-snippet-clipboard-copy-content="julia&gt; const x = 2, y = 3, z = 4
ERROR: syntax: invalid assignment location &quot;3&quot;"><pre class="notranslate">julia<span class="pl-k">&gt;</span> <span class="pl-k">const</span> x <span class="pl-k">=</span> <span class="pl-c1">2</span>, y <span class="pl-k">=</span> <span class="pl-c1">3</span>, z <span class="pl-k">=</span> <span class="pl-c1">4</span>
ERROR<span class="pl-k">:</span> syntax<span class="pl-k">:</span> invalid assignment location <span class="pl-s"><span class="pl-pds">"</span>3<span class="pl-pds">"</span></span></pre></div>
<div class="highlight highlight-source-julia notranslate position-relative overflow-auto" dir="auto" data-snippet-clipboard-copy-content="julia&gt; global x = 2, y = 3, z = 4
4"><pre class="notranslate">julia<span class="pl-k">&gt;</span> <span class="pl-k">global</span> x <span class="pl-k">=</span> <span class="pl-c1">2</span>, y <span class="pl-k">=</span> <span class="pl-c1">3</span>, z <span class="pl-k">=</span> <span class="pl-c1">4</span>
<span class="pl-c1">4</span></pre></div>
<div class="highlight highlight-source-julia notranslate position-relative overflow-auto" dir="auto" data-snippet-clipboard-copy-content="julia&gt; global const x = 2, y = 3, z = 4
4"><pre class="notranslate">julia<span class="pl-k">&gt;</span> <span class="pl-k">global</span> <span class="pl-k">const</span> x <span class="pl-k">=</span> <span class="pl-c1">2</span>, y <span class="pl-k">=</span> <span class="pl-c1">3</span>, z <span class="pl-k">=</span> <span class="pl-c1">4</span>
<span class="pl-c1">4</span></pre></div>
<p dir="auto">Reported at <a href="https://groups.google.com/forum/#!topic/julia-users/YSbN6EPOzKk" rel="nofollow">https://groups.google.com/forum/#!topic/julia-users/YSbN6EPOzKk</a>.</p>