How to Use Functions in Blocks (Difficulty: 4/10) Need to know about functions

A screenshot of what?

2 Likes

i’m still kind of confused, could you explain what use this has?
Edit: Not trying to be rude sorry if it came off that way

1 Like

The entire setup. Also, what do you mean by function?

1 Like

It stores blocks that are used a lot in a trigger, and it can help reduce block use, since you have a limit of 75 blocks.

3 Likes

I made a guide on it earlier. It takes in properties and then outputs other properties.

2 Likes

Here it is. The group on the left is the trigger-block I’m running and the group on the right is the function.

2 Likes

Can you explain it? I didn’t get that guide either.

2 Likes

Confused, how does this not work? And what is ā€œfunctionsā€. Also, I don’t code in python! Middle schooler here!

1 Like

Functions just call block code, like a trigger is theoretically just a function I guess. I don’t really understand either.

3 Likes

Time for some CS theory:
Functions take in inputs, perform some calculations, and then spit out an output.

What we’re doing here is changing the input of the function, then calling the function, the setting our property that we want to calculate with to the output of the function. To implement the function, I used some properties and a trigger to use the blocks.

In the picture, the input property is Divider and Dividend. The output is the remainder property. When the remainder property changes, it sets the trigger on the left off through the counter->property->trigger chain of channels. This, the trigger on the left will run different blocks than before because now the Amount of Functions Done property is 1.

6 Likes

OOOOOHHHHH! You mean functions like in math! Like the ones you graph! I was overthinking and though you meant some sort of coding thingie! Although, couldn’t you just add or subtract or whatever?

1 Like

This is pretty useful, but it’s like a python trade off. Simplicity for less efficiency. (Lots of triggers recursing each other tends to be slow).

4 Likes

Get not impossibled

4 Likes

Well, notice his wording. He never said it was impossible, just didn’t think it was. Difference.

1 Like

I think I get it, this sounds niche, but useful.

2 Likes

Also, I meant as of now’s discoveries.

2 Likes

Bye guys.

1 Like

?

2 Likes

Ok time to do integrals while I’m taking a break from bitwise operations :smiley:

Also I’m pretty sure integrals can be implemented in brain**** and brain**** can be implemented in creative.

3 Likes

What about double, triple, line, and surface integrals? The laplace transform? Fourier Series? Taylor Series (very possible)? Derivatives? Partial Derivatives? Are you going to implement that?

3 Likes