# Error with TIkz function and polar coordinates in Texlive/MacTex [duplicate]

I am encountering a rather odd typesetting error with Tikz when running the following code:

\documentclass[]{amsart}

\usepackage{tikz,pgfplots}

\begin{document}

$\begin{tikzpicture}[thick,x=2em,y=2em] \draw [->] (0,0) -- (0:{sin(90)}); \end{tikzpicture}$

\end{document}


The above runs fine with MikTex (Windows) but gives this error when run in TexLive (Ubuntu) or MacTex:

Package tikz Error: Giving up on this path. Did you forget a semicolon? \draw [->] (0,0) -- (0:{sin(90)})


If I change (0:{sin(90)}) to (0,{sin(90)}) or (0:{1}) then it works fine. Any idea why?

-

## marked as duplicate by dustin, Henri Menke, ChrisS, Malipivo, JesseMay 8 '14 at 6:11

This question was marked as an exact duplicate of an existing question.

Welcome to TeX.SX! Your example works fine here, with TeX Live 2013. Do you have the same version of PGF/TikZ everywhere? – Torbjørn T. May 8 '14 at 5:21
Thanks @TorbjørnT. I should have looked up on this site (I did, but found nothing). It was already covered here. Now I need to find a way to update my PGF/TikZ, and also to close my question. – Quang Hoang May 8 '14 at 5:27
I voted to close your question with the link you provided. – dustin May 8 '14 at 5:32