> For a long time I’ve been aware of corecursion and coinduction as something mysteriously dual to recursion and induction, and related to maximal fixed points and bisimulation … but I’ve never understood what they are or what the duality signified by the “co” means.
I kind of feel the same
would appreciate it if someone can explain to me what it is
> Whereas recursion works analytically, starting on data further from a base case and breaking it down into smaller data and repeating until one reaches a base case, corecursion works synthetically, starting from a base case and building it up, iteratively producing data further removed from a base case.
First, to dispel a possible cognitive dissonance: reasoning about infinite structures is not a problem, we do it all the time. As long as the structure is finitely describable, that's not a problem. Here are a few common types of infinite structures:
languages (sets of strings over some alphabe...
so, coinduction appears to be something like proving P(n-1) given P(n) (and P(some kind of infinity)? maybe?
Asymptotic doesn't make sense with bounded input. Unbounded input doesn't make sense with actual implementation. No actual implementation doesn't make sense with PPCG.
In other words: Asymptotic implies unbounded input. Unbounded input implies idealized implementation. Idealized implementation contradicts PPCG rule.
Generally we accept answers that only works up to 2^32.
Bigint answers probably only works up to (2^32)^(2^32).
Create a class named payroll with a method named computepayroll. The computepayroll method will compute the salary of an employee base on the given data below.
Given:
Rate = 300
Number of days rendered = 5
10 % Tax
Create a main method named payroll
Create a class named payroll with a method named computepayroll. The computepayroll method will compute the salary of an employee base on the given data below.
Given:
Rate = 300,
Number of days rendered = 5
10 % Tax
Create a main method named payroll
> Your answer should take be a logical expression of that sort that can just be pasted into python, say, so I can test it. If two people get the same size expression, the code that runs the fastest wins.
@Zacharý The frontend supports multiple categories. However, there's no esoteric category, only a recreational category, and I consider them mutually exclusive.
@user202729 yes. basically, packages that are intended as standalone programs, not dependencies (this includes pseudo-package-managers e.g. sails/bower etc)
I intended to modify the æḟ and æċ in the wiki to note that it doesn't work for negative exponent like this
`æċ`|Ceil **x** to the nearest power of **y**, if **x ≤ y** and **y > 0** returns **y**.
`æḟ`|Floor **x** to the nearest power of **y**, if **x ≤ 1** and **y > 0** returns **1**.
Thoughts?
(because .5æċ2 returns 2 while it should return .5)
@Cowsquack it kinda makes sense (for numbers very close to 1, n^3 roughly equals 1+(n-1)*3) but it doesn't explain why it works for even the second digit