Is there a reason why there arent cos[] and sin[] operators?

Hello everyone, so recently I made a spider graph chart for a redditor, and fiddling around with the mathematic operators I quickly realised there isnt any way to do trigonometry. Is there a reason for that ?

I know it’s possible to get a good approximation of sinus with multiplication and division only (see this article, and that one for a CSS only solution) but these operators are really easy to add :

exports.cos= makeNumericBinaryOperator(
	function(a) {return Math.cos(a)}
);

exports.sin= makeNumericBinaryOperator(
	function(a) {return Math.sin(a)}
);

I added the other trigonometric operator here : TW-tips — useful information collected from the tiddlywiki community

Am I missing something ?

@telumire historically we did not really support much calculation mathematics in tiddlywiki (just the maths plugins for formulae etc…).

There as being a lot additions in recent releases so one may look at the list and think why was there not more, but I suppose its gradual.

Prior to these core additions there are plugins, the calc plugin that allows you to do Javascript maths and the spectacular Formula plugin by Evan were the go to extensions for more advanced calculations.

I was just searching to provide some links for Calc, Formula and MathCell plugins and I am seeing phishing so I will return later with links.

1 Like

Warning there appears to be malware at the address for Evans Formula plugin, I can share the version I have if requested.

I think Joshua made it compatible with v5.1.23 and it has been merged back to the main repo: https://github.com/EvanBalster/TiddlyWikiFormula

3 Likes

Thanks to Mario follow this link and you will find trigonometry and more.