New answers tagged

0 votes

Definite integral of polynomial functions

JavaScript (Node.js), \$\frac{30}{70}\approx0.4286\$ I=b=>c=>(F=x=>c.reduce((s,e,i)=>s+(e/(i+1)*x**(i+1)),0))(b[1])-F(b[0]) Try it online! Takes ...
2pichar's user avatar
  • 211
0 votes

Approximate ∫((e^x)/(x^x))dx

JavaScript (Node.js), 58 bytes f=(b,a=0)=>b<1e-5?(Math.E/a)**a*b:a<99&&f(b/=2,a)+f(b,a+b) Try it online! binary operation to avoid stack overflow
l4m2's user avatar
  • 23.8k
1 vote

Argument of a complex number (Cops)

Python, 51 bytes ''''((())),,,2:____aaaaaaaabbbdeghilmmmnoprrtttttt A bit better than my other one, still uses math.atan2
M Virts's user avatar
  • 1,075
1 vote

Argument of a complex number (Cops)

Python, 2829 bytes Maybe not the most well golfed submission, but hey maybe that'll help it not get cracked :D It uses the math.atan2 to do the real work. ...
M Virts's user avatar
  • 1,075
2 votes

Approximate ∫((e^x)/(x^x))dx

TI‑BASIC, 622 B Picking up Lirtosiast’s informal bounty let’s kick things off with an implementation setting an upper limit with respect to byte count. TI‑BASIC as a primarily interpreted language is ...
Kai Burghardt's user avatar
1 vote

Argument of a complex number (Cops)

J, 10 bytes, safe o.&:^._1r9 Does not round the answer. Hint Answer
LdBeth's user avatar
  • 313
1 vote

Argument of a complex number (Cops)

J, 12 bytes, safe ^.(123!&o+). A monadic tactic function that takes a complex number. No rounding performed. Hint 1 Hint 2 Hint 3 Answer
LdBeth's user avatar
  • 313
0 votes

Argument of a complex number (Cops)

Wolfram Language (Mathematica), 18 bytes, safe Yet again rounds to 6 sig figs. (also hopefully lasts more than 10 hours lol) *+,6@IILN[[]]gmoxy Solution:
CrSb0001's user avatar
  • 357
2 votes

Argument of a complex number (Robbers)

J, 11 bytes, cracks Bubbler _&,^:_1.&*. or _&,^:_1&.*. or _.&,^:_1&*....
LdBeth's user avatar
  • 313
2 votes

Argument of a complex number (Cops)

J, 11 bytes, cracked by @LdBeth *&_,.1:_.&^ Takes a complex number in the form of x + 1j * y. Output is not rounded. ...
Bubbler's user avatar
  • 76k
0 votes

Symbolic Differentiation of Polynomials

Swift 5.9, 218 bytes ...
macOSisthebestOS's user avatar
3 votes

Argument of a complex number (Cops)

Wolfram Language (Mathematica), 50 bytes, safe ##&(())**+,,.////0012@@DHIMN[[[[[]]]]]^^adeinrsttu Expects [x,y]. Hint: ...
att's user avatar
  • 20.4k
4 votes

Argument of a complex number (Robbers)

Wolfram Language (Mathematica), 48 bytes, cracks att N[ToPolarCoordinates[List[##,##]][[Abs[2]2]]]& Try it online! All credit goes to Greg Martin for actually ...
vindobona's user avatar
  • 141
1 vote

Argument of a complex number (Robbers)

Go, 69 bytes, cracks @bigyihsuan import."math/cmplx";func Posswf(n complex128)float64{return Phase(n)} Try it online!
Mukundan314's user avatar
  • 10.5k
1 vote

Argument of a complex number (Cops)

Go, 69 bytes, cracked by @Mukundan314 ""(())./12468;PPaaaccceeefffhhilllmmmmnnnnooooppprrrsssttttuuwxx{} Solution Attempt This Online!
bigyihsuan's user avatar
  • 9,338
1 vote

Argument of a complex number (Robbers)

C (gcc), 68 bytes, cracks? Blue #include <complex.h> float h(float n, float at){return carg(n+at*I);} -- Am I right to believe that for imaginary reasons, a ...
Guido's user avatar
  • 21
2 votes

Argument of a complex number (Robbers)

Python, 50 bytes, cracks @CursorCoercer lambda e,f:log(e+(1.0j*f)).imag from cmath import* Attempt This Online!
Mukundan314's user avatar
  • 10.5k
1 vote

Argument of a complex number (Robbers)

C (gcc), 65 bytes, cracks Blue #include <math.h>,x float h(float y, float s){return atan2(y,s);} the elevation of ,x was quite a surprise
Guido's user avatar
  • 21
1 vote

Argument of a complex number (Robbers)

Wolfram Language (Mathematica), 31 bytes, cracks CrSb0001 NumberForm[Im[Log[N[x+I*y]]],6] Try it online! (I don't know why but TIO doesn't reduce ...
Greg Martin's user avatar
  • 15.7k
3 votes

Argument of a complex number (Cops)

Wolfram Language (Mathematica), 46 bytes, safe @@####^^&&--+{[[(())]]}.,,//122255AIISbmmmmmsu As with my other submissions, this is an unnamed function of ...
Greg Martin's user avatar
  • 15.7k
2 votes

Argument of a complex number (Robbers)

Wolfram Language (Mathematica), 53 bytes, cracks Greg Martin Im@Integrate[1/e,{e,1.,#+#2I+Boole[#<0&&#2==0]/9!I}]& Try it online! I couldn't figure ...
att's user avatar
  • 20.4k
2 votes

Argument of a complex number (Cops)

Python, 50 bytes, Cracked by @Mukundan314 from math import* def j(l,a):a*me.fog.magic(l+0b1) No rounding.
CursorCoercer's user avatar
0 votes

Argument of a complex number (Cops)

Wolfram Language (Mathematica), 31 bytes, cracked by Greg Martin *+,6FIILNN[[[[]]]]begmmmoorruxy Hopefully lasts more than 5 hours this time, also uses a different ...
CrSb0001's user avatar
  • 357
2 votes

Argument of a complex number (Robbers)

Wolfram Language (Mathematica), 57 bytes, cracks CrSb0001 f[x_,y_]:=N[Arg[x+y*I]+(b-b)/6*FIILNR[e,e][][]*mmoorsuxy] Try it online! Be careful what you allow :)
att's user avatar
  • 20.4k
0 votes

Argument of a complex number (Cops)

Wolfram Language (Mathematica), 57 bytes, Cracked by @att ()***++,,-/6:=AFIIILNNR[[[[[[]]]]]]__bbeefgmmoorrsuxxxyyy Unsure if it is generally accepted to answer ...
CrSb0001's user avatar
  • 357
1 vote

Argument of a complex number (Cops)

C (gcc), 68 bytes No rounding; this one's a bit more complex, so I'm giving you all a hint ;) ...
Blue's user avatar
  • 51
2 votes

Argument of a complex number (Cops)

C (gcc), 65 bytes, cracked by @Guido No rounding. hey, sexy #(()),,.2;<>aaaaaacdfffhhillllmnnnooorrsttttttuu{}
Blue's user avatar
  • 51
2 votes

Argument of a complex number (Cops)

Java (JDK), 47 bytes 0000000000000023344466778\\\\\\\aaaaadeuuuuuuu Takes arguments in the order y, x and doesn't round. ...
Neil's user avatar
  • 170k
3 votes

Argument of a complex number (Cops)

Wolfram Language (Mathematica), 46 bytes, cracked by vindobona ####&,22ACLNPT[[[[[[]]]]]]aabdeiilnoooorrssstt Sorry I don't have words like Greg Martin did. ...
att's user avatar
  • 20.4k
1 vote

Argument of a complex number (Cops)

Vyxal 3, 22 bytes ᵇİ0daṫȦ#+>Q[\\ik|¬¿÷∆∨ Input is taken as [y,x], output is not rounded. The program quits when received <...
math scat's user avatar
  • 9,228
4 votes

Argument of a complex number (Cops)

JavaScript (Node.js), 55 bytes, safe The output is not explicitly rounded. (())*++++++,,,,-/6=====BBBBBBBMMM[[[]]]aeffhhhhhrrrrrtu Hint 1 Hint 2 Solution Try ...
Arnauld's user avatar
  • 192k
1 vote

Argument of a complex number (Cops)

MATL, 12 bytes. Safe *LUYYZjlssty Non-required information provided as a courtesy for the robbers: Input is a row vector of two numbers. Output is not rounded. ...
Luis Mendo's user avatar
  • 104k
4 votes

Argument of a complex number (Cops)

Wolfram Language (Mathematica), 53 bytes, cracked by @att B{[[@#&#&#&#=!=/+<+/1122900,eternal,emote,ego]]}.IIII Hint/teaser: the 31-byte subset <...
Greg Martin's user avatar
  • 15.7k
4 votes

Argument of a complex number (Robbers)

Wolfram Language (Mathematica), 13 bytes, cracks Greg Martin Re@*N@*ArcTan Try it online! Prints more than six significant figures on TIO, possibly because of the <...
totallyhuman's user avatar
  • 17.2k
3 votes

Argument of a complex number (Robbers)

Uiua 0.10.0, 14 bytes, cracks @Tbw ⍥¬0(÷×.±↥⊃∩⌵∠) Try on Uiua Pad!
Mukundan314's user avatar
  • 10.5k

Top 50 recent answers are included