complex numbers are really good for coordinate manipulation
i use it a lot in AOC
but tbh golfing languages often have better ways of doing said coordinate related tasks with the coordinates themselves and converting from/to complex numbers isn't even great
wolfram alpha says 1/0, -1/0, inf/0 are all complex infinity
ofc I don't know much about the candidates or the site but from what I know, there are several candidates who'd all be good for the spot so it seems like it'd be hard to decide who to put first
Print the following text and nothing else:
<html>
<body>
<p>HTML is kinda annoying</p>
</body>
</html>
I'm happy I'm not a web developer.
The catch? Your code must fit the template: print(<?>), where ? can be any group of characters. You can paste your completed code (with the print(<>...
Newcomers to codegolf.SE are often compelled to ask what many of our abbreviations and terms mean. Let us list them here so this information always will be easily available.
Return to FAQ index
instead of "cmc:" why don't we start writing just "challenge:"? "chat" is clear from context, "m" could mean anything from mini to mega, the only meaningful part is the second "c". it would be easier for newcomers to understand it if it's just "challenge:"
that'd actually not be a bad idea though - we spend more bytes explaining what a CMC is than we would save typing CMC instead. I guess it's just become part of this room's culture / people do it by habit lol
but yeah, like using challenge:, question:, poll:, etc. makes just as much sense ¯\_(ツ)_/¯
CMC Mini Challenge: Given a string consisting of three space-separated words, Replace the first word with the initialism for the three words. E.g. Point of View → PoV of View and Chat Mini Challenge → CMC Mini Challenge and laughing out loud → lol out loud
Saint Martin (French: Saint-Martin; Dutch: Sint Maarten) is an island in the northeast Caribbean Sea, approximately 300 km (190 mi) east of Puerto Rico. The 87-square-kilometre (34 sq mi) island is divided roughly 60:40 between the French Republic (53 km2, 20 sq mi) and the Kingdom of the Netherlands (34 km2, 13 sq mi), but the two parts are roughly equal in population. The division dates to 1648. The southern Dutch part comprises Sint Maarten and is one of four constituent countries that form the Kingdom of the Netherlands. The northern French part comprises the Collectivity of Saint Martin and...
Desmos is mainly used as an online graphing calculator, but its graphical and mathematical functionalities can also be applied in certain coding challenges.
I know not that many people use Desmos on this site, but for the people that do, what are some tips for golfing in Desmos?
As usual, please ...
how do you exponentiate complex numbers / arbitrary decimals? since i'm using JS and representing numbers with a custom format (since unlike Python it doesn't have built-in imaginary numbers) i can't just throw a ** in
The task is to provide code that evaluates to 0.5 numerically, i.e. the output must be recognized by your chosen language as a numeric value (Number, float, double, etc), not as a string. The catch, the characters 0 through to 9 cannot be used.
This is not a golfing challenge, this is a popularit...