It took me a while to figure out what that movie was about because I was looking at the blocks and the text, and the arrowheads totally escaped my notice. :~)
This may be too hard to implement, but what would make that feature perfect would be if hovering over the (right-facing) arrowhead showed the parameter's name as hovertext, for the situation in which there are three of them in a row and the user doesn't remember what order they come in.
Although, on the other hand, what I really want is that the long form input dialog should say
○ Multiple inputs (value is list of inputs) min ( ) default ( ) max ( )
where the ( ) are numeric input slots. So the hidden input case is 0/0/1. If MAX is omitted it means ∞, so the usual case is 0/1/⎵.
I think you picked the wrong base case for ONLY HAS. If the list is empty it should report True. This is the common situation with for-all functions, which are sort of defined negatively; ONLY HAS means "there aren't any items that aren't 5." And if there aren't any items at all, then there aren't that aren't 5. Formally,
[∀x∊S | x=v] ⟷ [~∃x∊S | x≠v]
where S is the set of values in the list and v is the value you're testing against.
AND has True as its base case for the same reason; it says ∀x∊S x.
Yes, but I think only about the division operator first, thank you for let me check your ideas to me.
That's not the case, I mean that ONLY HAS means if in the list contains 5, but if there are any items that are not 5 in the list, just check it as false because these extra items changes any function that uses lists to set positions of sprites or any another morph, that's why the function means, but yes, you have the reason too, master. I think to leave the function as normal without changing nothing.
Imho, primitives shouldn't be designed around one particular application that you have in mind. They should be as general as possible. The user program for your application will be more self-documenting if it says
(ONLY HAS ...) AND (NOT (IS ... EMPTY?))
And yes, if you do it your way I can build the function I want with
(ONLY HAS ...) OR (IS ... EMPTY?)
but, how do I put this, non-emptiness is a significant part of the definition of the kind of list you're looking for, whereas the other way it's "oh yeah, or it can be empty" which isn't what I want to think about.
Oh gosh I've gone a long time not responding to this.
How much calculus do you know? I see your integral block just handles powers of x. You can do numerical integration (finding the value of the integral at a particular value of x) of any function by going back to the definition of the integral, which is something like
So you can get a pretty good approximation by setting $$\Delta x$$ to some tiny number, like say 1.0e-30, and computing the sum with that value. If you want to be sure of doing a super good job you then try 1.0e-40 and so on, stopping when two consecutive values are equal. There are weird functions for which it may not work, e.g., if you try to compute the integral of the tangent function over a range that includes 90°, so the value of the function at that point is infinite.
(Note, if you really use my $$\Delta x$$ values it'll take a very very long time to compute the sums. Probably 0.00001 will be small enough for most purposes.)
Yes Brian, you are in reason. I'm just learning that because I'm too curious, but yes, I calculated the very good approximation of the integral without loops or iterations because I see the patterns of the basic integral on my calculator, I'm not to calculate more integrals for now because they need more patterns to solve and yes, too complicated. You are an amazing teacher Brian, just see the extra features of the mod, I'm just doing it for you and for the other Snappers, some code is revealed because I want to share you my proposals, thanks for responding to me, but I have to sleep now, see ya in the school!