in J programming language ,
-: i. 5
the above function calculates the halves of all integers in [0,4]. Now let me say that I would like to rewrite the function: :, just for fun. So far i guessed
]&%.2
but it doesnβt seem to cut. How do you do this?
%&2 NB. divide by two 0.5&* NB. multiply by one half
Note that]% 2: will also work, but to ensure the correct grammar, you either want to use this as a name definition or want to put the expression in parentheses.
, %. , , , " ".
, , , , , , , , J, - , ( ) , , .
, , , , % .
, 101 (http://projecteuler.net/problem=101), Google Jsoftware.com. , , ax ^ 2 + bx + c = y, x y, a, b c. , , , , .
, Matrix Algebra, .
Source: https://habr.com/ru/post/1724238/More articles:PersistenceSpecification NHibernate Free Checklist - c #https://translate.googleusercontent.com/translate_c?depth=1&pto=aue&rurl=translate.google.com&sl=ru&sp=nmt4&tl=en&u=https://fooobar.com/questions/1724234/how-to-reformat-urls-to-be-more-restful-from-id-123-to-123&usg=ALkJrhisTOll1wkpqG22BZRIEPYgqc-TRAShoud Do I use LayoutKind.Auto for my structures if they are not running in COM Interop? - c #JQuery validation - displays only one error message - jqueryHLSL DirectX9: Is there a getTime () function or similar? - c ++Cocoa Touch Saving - objective-cHow to omit opacity changes from jQuery show () - jqueryHow to create a table heading for each new page using Word interop? - c #Calculating number ranges in PHP - arraysRefactoring my macro in a schema - macrosAll Articles