Python: Calculate sine/cosine with a precision of up to 1 million digits
Question is pretty self-explanatory. I've seen a couple of examples for pi but not for trigo functions. Maybe one could use a Taylor series as done here but I'm not entirely sure how to implement that in python. Especially how to store so many digits. I should mention: this ideally would run on vanilla python i.e. no numpy etc. Thanks! Edit: as said, I know the question has been asked before but it's in java and I was looking for a python implementation :) Edit 2: wow I wasn't aware people here can be so self-absorbed. I did try several approaches but none would work. I thought this a place