257->256?!
https://github.com/DennisMitchell/jelly/wiki/Code-page
page contradicts the tutorial, and seems obviously only having 256. Not sure, see now and maybe "The character ¶ and the linefeed character can be used interchangeably" explains 257, then tutorial "wrong"?
Interesting language.. never seen Ð (and æ), and Þ (while not in code below) from my native Icelandic used, it seems it has a specific meaning and even €..
[I kind of want to know, what these Icelandic only letters do.. Seems we Icelanders have an adcantage typing in some programs.. :) but not all as e.g. Ç not on my keyboard. ]
https://codegolf.stackexchange.com/questions/79459/matrix-trigonometry
Julia, 19 bytes
A->reim(expm(A*im))
Jelly, 22 bytes [I actually thought I had the code page in browser set wrong.. :) ]
³æ*÷! ®Ḥ‘©r0Ç€s2_@/µÐL
really from:
https://github.com/JuliaLang/julia/pull/23679 "This PR would reduce Alex' answer to 6 bytes."
In Unicode mode, programs can use up to 257 different characters that aren't blatantly ignored by the interpreter. ¶ and a linefeed do the same, so only one of them is present in the code page. I chose ¶ because its easier to display.
In normal mode (using the code page), there are obviously only 256 different bytes. 0x7F is to be used wherever a ¶ or linefeed is needed.
I kind of want to know, what these Icelandic only letters do..
-
Ð,Æ, andæare part of two-character tokens and do nothing on their own.Æandæare used for arithmetic extensions. -
ðbegins a new, dyadic chain. -
Þis sort-by. For example,LÞsorts a list of lists by length. -
þis table. For example,3+þ5computes all sums x+y with x = 1,2,3 and y = 1,2,3,4,5.
That last one probably wants to be 3+þ5
@vendethiel Yes, indeed.