# Search Results

Results tagged with Search options user 10740
62 results

This challenge is intended to be solved by using, manipulating, accepting as input, or outputting numeric values.

GameMaker Language, 22 bytes return sign(argument0) Alternative solutions: return median(1,argument0,-1) a=argument0 return (a>0)-(a<0) a=argument0 return max(-1,min(a,1)) a=argument0 if a return …
answered Dec 20 '16 by Timtech
TI-Basic, 2 bytes rand^-1 (AB 0C in hex) For anyone who is wondering, rand returns a random value in (0,1]. "Due to specifics of the random number generating algorithm, the smallest number … possible to generate is slightly greater than 0. The largest number possible is actually 1 ..." (source). For example, seeding rand with 196164532 yields 1. …
answered Dec 15 '17 by Timtech
TI-Basic, 12 bytes Prompt L1,L2 sum(L1L2
answered Oct 2 '16 by Timtech
TI-Basic, 19 bytes Prompt A,B,C,D:3A+4B+5C-D Alternatively (21 bytes): 3Ans(1)+4Ans(2)+5Ans(3)-Ans(4
answered Nov 20 '17 by Timtech
TI-Basic, 2 bytes Ansֿֿ ¹ You could also do 1/Ans (3) or Ans^~1 (4).
answered Mar 31 '17 by Timtech
TI-Basic 83/84, 40 bytes Input A:For(I,A,2,~1:A+(AfPart(I/2)-1)I(1>IfPart(A/I->A:End:A Information about TI-Basic
answered Mar 5 '15 by Timtech
GML, 76 bytes n=argument0;i=n;while~-1{n+=(n mod i<1)*i*(n/i mod 2*2-1)i--}show_message(n) Information about GML
answered Mar 5 '15 by Timtech
TI-Basic, 10 9 10 bytes 2min(Ans)-14≤max(Ans List input from Ans, outputs 1 if "creepy" or 0 otherwise.
answered May 24 '17 by Timtech
COW, 108 MoO moO MoO mOo MOO OOM MMM moO moO MMM mOo mOo moO MMM mOo MMM moO moO MOO MOo mOo MoO moO moo mOo mOo moo
answered Jan 12 '14 by Timtech
Brainfuck (incomplete) Adding? ,>,[-<+>] Subtracting? ,>,[-<->]
answered Feb 3 '14 by Timtech
TI-Basic, 19 bytes Prompt A,B A For(C,2,B A^Ans End
answered Oct 22 '16 by Timtech
: - this gives the number 1 or -1 (with equal probability) to Ans randNorm(AnsE6,9 - displays Gaussian distribution with mean (Ans * 1,000,000) and std. dev. 9 …
answered Dec 26 '14 by Timtech
TI-Basic, 23 21 bytes Prompt A,B (ʟA=ʟB)ʟA+max(ʟA,ʟB Too bad lists take up two bytes each...
answered Aug 28 '17 by Timtech
TI-Basic, 9 bytes Input should be passed as string expr(Ans)expr(Ans+Ans
answered Feb 22 '17 by Timtech
TI-Basic, 11 bytes logBASE(Ans,2 Ans and not(fPart(Ans Alternate solution (14 bytes): max(Ans=2^seq(I²,I,2,Ans
answered Sep 13 '17 by Timtech

15 30 50 per page