Hi,

We do need more maths functions like cos, sin, tan, cosh, sinh, tanh and, of course, acos, asin, atan…

Coda is a very good tool, thanks devs !

Hi,

We do need more maths functions like cos, sin, tan, cosh, sinh, tanh and, of course, acos, asin, atan…

Coda is a very good tool, thanks devs !

3 Likes

Yes, please add these math functions. I had to use a taylor series to approximate a sine function. Kludgy !

Hello @Stephane_Botello, @Mark_Sluser,

Apologize for the slightly delayed response, but I come bearing some good news.

We just added a new pack called `Trigonometry`

with you commonly used Trig functions. Example here of `cos`

https://coda.io/formulas#Trig::ArcCosine.

https://help.coda.io/connect-your-doc/packs/using-coda-packs contains some more info on installing packs into a document.

Try it out, let us know what you think!

Thanks,

Hari.

PS: I’m curious to know your Taylor series formula for `sine`

. Here’s what I came up with (N is [0, 100]):

```
Sequence(0, 100, 1)
.FormulaMap(
Power(-1, CurrentValue) / Factorial(2 * CurrentValue + 1)*Power(1, 2 * CurrentValue + 1)
)
.SUM()
```

3 Likes

That’s better than I was using. I didn’t know how to use formulamap, so I explicity entered the formula.

I found that if I went to power 19 (about the 9th or 10th term) I was able to get enough accuracy for about 4 decimal places.

I wish you could have user defined formulas in coda. If there is I haven’t discovered it yet.

I also wish there was a complete reference for all the functions available. After reviewing the documentation, I have been browsing the forum to understand what coda can do.

-Mark