1672
submitted 1 year ago by 5SpeedDeasil@lemmy.world to c/memes@lemmy.ml
you are viewing a single comment's thread
view the rest of the comments
[-] can@sh.itjust.works 3 points 1 year ago

Yeah I don't really think that helps anyone that didn't understand the above example, sorry.

[-] Kecessa@sh.itjust.works 4 points 1 year ago

Yeah they might as well have written it in assembly... Some people are just not very good at understanding that others don't have their knowledge/ease of understanding certain things, especially people who are very good at what they do, the ability to simplify is as much a skill as understanding complex concepts!

[-] only_lurking@lemmy.world 1 points 1 year ago

For the case that n = 0 (before the first run of the loop), x(0) = 1.

For the first actual case, n = 1. X(1) = x(0)*3*n = 1*3*1 = 3.

For the next case, n = 2. X(2) = x(1)*3*n = 3*3*2 = 18.

For the next case, n = 3. X(3) = x(2)*3*n = 18*3*3 = 162.

For the next and last case, n = 4. X(4) = 162*3*4 which I'm not computing. The computer value of x(4) is the value of the product loop.

If that doesn't help, I could try helping again to rephrase, but I'm not sure what else to add.

this post was submitted on 16 Jul 2023
1672 points (96.6% liked)

Memes

45656 readers
878 users here now

Rules:

  1. Be civil and nice.
  2. Try not to excessively repost, as a rule of thumb, wait at least 2 months to do it if you have to.

founded 5 years ago
MODERATORS