Search Results
Search type | Search syntax |
---|---|
Tags | [tag] |
Exact | "words here" |
Author |
user:1234 user:me (yours) |
Score |
score:3 (3+) score:0 (none) |
Answers |
answers:3 (3+) answers:0 (none) isaccepted:yes hasaccepted:no inquestion:1234 |
Views | views:250 |
Code | code:"if (foo != bar)" |
Sections |
title:apples body:"apples oranges" |
URL | url:"*.example.com" |
Saves | in:saves |
Status |
closed:yes duplicate:no migrated:no wiki:no |
Types |
is:question is:answer |
Exclude |
-[tag] -apples |
For more details on advanced search visit our help page |
For challenges involving sequences, typically of numbers following some pattern.
0
votes
Find the tangent of the sum of inverse tangents
Julia 0.6.0 40 bytes
k->rationalize(tan(sum(x->atan(x),1:k)))
It's a straightforward implementation of the question. The precision of rationalize can sometimes be weird but works fine 99% of the tim …
1
vote
Calculate the n-th iterate of a polynomial for a specific value; fⁿ(x)
Julia 0.6.0 (78 bytes)
using Polynomials;g(a,n,x)=(p=Poly(a);(n>0&&(return g(a,n-1,p(x)))||return x))
Explainations:
The package Polynomials is pretty self explanatory: it creates polynomials. Aft …