# Tag Info

### The Pedant's Cosine

Operation Flashpoint scripting language, 165 157 bytes ...
• 16.5k

### Derivative of a product

Pip, 15 bytes aRL#aJ'+<>#aJ'' Attempt This Online! Explanation ...
• 38.8k
Accepted

### Find the rate of change at a point on a polynomial

Mathematica, 6 bytes #'@#2& (Beat THAT, MATL and 05AB1E) The first argument must be a polynomial, with # as its variable ...
• 13.8k

### ​P​i​ =​= ​3​.​2​

Python + scipy, 92 bytes from scipy.integrate import* lambda p:2/p*quad(lambda x:(x/x**p+(1-x)**(1-p))**(1/p),0,1)[0] Formula is from this math.SE question.
• 39.1k

### The Pedant's Cosine

05AB1E, 14 11 bytes FIn(NmN·!/O Try it online! Explanation ...
• 53k

### The Lehmer-Comtet sequence

Haskell, 77 75 bytes, no differentiation builtins x@(a:b)&y@(c:d)=a*c:zipWith(+)(b&y)(x&d) s=1:s&(1:scanl(*)1[-1,-2..]) (s!!) Try it online! How ...
• 39.8k

### Derivative of a product

Python, 54 bytes lambda s:((l:=len(s))*(l*"'"+-~l*(s+"+")))[-~l*~l::-l] Attempt This Online! Python, 56 bytes lambda s:((l:=-~len(s))*(l*(s+"+")+-~l*"'")...
• 16.7k

### ​P​i​ =​= ​3​.​2​

MATL, 31 bytes 0:1e-3:1lyG^-lG/^v!d|G^!slG/^sE Try it online! Or verify all test cases. Explanation This generates the x,y coordinates of one quarter of the ...
• 105k

### Compute Dickman

Python, 141 bytes g=lambda x,p=[1]+[0]*99,I=2,z=0,i=0:x<1and sum(a*(1-x)**~-(i:=i+1)for a in p)or g(x-1,[p[0]-sum(A:=[(z:=(z+w)/I)/(i:=i+1)for w in p])]+A,I+1) ...
• 78.2k

### Write a Sine-Deriving Machine

Python, 42 bytes from math import* lambda x,n:sin(x+pi/2*n) Uses the fact that differentiating shifts the function by pi/2 ...
• 146k

### ​P​i​ =​= ​3​.​2​

Wolfram Language (Mathematica), 49 46 45 bytes 3 bytes saved thanks to alephalpha. 1 byte saved thanks to att. \!$$2N@∫\_0\%1\@+++(a^-#-1)^(1-#)\%#a$$& Try it ...

### The Pedant's Cosine

Mathematica, 49 41 39 31 bytes Sum[(-#^2)^k/(2k)!,{k,0,#2-1}]& Old, more "fun" version: (39 bytes) ...
• 7,592

### The Pedant's Cosine

MATL, 14 bytes U_iqE:2ep/YpsQ Try it online! Or verify all test cases. Explanation with example All numbers have double precision (this is the default). Consider ...
• 105k

### Approximate definite integrals using Riemann sums

R, 69 65 63 57 bytes function(a,b,n,k,f,w=(b-a)/n)sum(sapply(a+w*(1:n-k),f))*w Try it online! Takes k=FALSE for right-hand ...
• 28.8k

### Derivative of a product

C (clang), 69 64 59 bytes -10 thanks to @Noodle9 and @ceilingcat l;f(char*a){for(l=0;a[l];)printf("+%.*s'%s"+!l,++l,a,a+l);} Try it online!
• 3,230

### The Pedant's Cosine

Jelly, 12 11 bytes ḶḤµ⁹*÷!_2/S Try it online! How? ...
• 109k
Accepted

• 146k

### Solve the Laplace equation

Matlab, 84, 81.2 79.1 bytes = 113 - 30% function u=l(f,N,a,b);A=toeplitz([2,-1,(3:N)*0]);A([1,2,end-[1,0]])=eye(2);u=[a,f((1:N-2)/N)*(N-1)^2,b]/A;plot(u) Note ...
• 43.9k