Skip to content

Add a Pascal key to the probability or special keyboard #8036

Closed
@rdstern

Description

@rdstern

This is not to be done immediately. And I need help, because I can't yet do it as I would like.

The murderous maths book on probability declares that Pascal's triangle is one of the most gorgeous things in maths.

I would like to generate them as a list and it seems surprisingly easy. It uses the choose function for which there is already a key.

I discuss this in #8034 . I then found that the simple code:

lapply(x1,choose,0:100) is almost what I want:

image

But the list variable always has 101 elements. Nice if it had, 2, 3, etc for each row. Having 0:x1 gives just the first 2 values. I assume I need to define and run a function?

Maybe this is nice for the propose Special keyboard I am planning to support the teaching of programming.

Metadata

Metadata

Type

No type

Projects

No projects

Milestone

Relationships

None yet

Development

No branches or pull requests

Issue actions