Re: Substacks

2022-05-28 Thread Thomas von Fintel via use-livecode
Hi, did you try  close stack "xyz" ? Thias works for me, in the IDE at least, both if called from the mainstack and from the substack. Only the substack is closed. Livecode 9.6.7 and Windows 10 Hope this helps Thomas Am 28.05.2022 um 16:15 schrieb General 2018 via use-livecode: Hi , Ne

Re: For the Mathematicians.

2022-01-22 Thread Thomas von Fintel via use-livecode
I am not a mathematician, but this kind of equation is called implicit function, implicit equation or implicit curve. If you search for that combined with draw or plot, you might find explanations. But it seems to be complicated. Hope this helps. Thomas > Am 22.01.2022 um 17:56 schrieb Roger

Re: Contesting for Idiot du Jour

2020-09-05 Thread Thomas von Fintel via use-livecode
;#.0" put (pX2- pX1)^2 + (pY2- pY1)^2 into Lsquared put Sqrt(Lsquared) into tL if tL > tconstL then add 1 to tLongCount --- put tLongCount into fld "LongCountFld" end GetLength Thanks, Roger On Sep 5, 2020, at 11:07 AM, Thomas von Fintel via us

Re: Contesting for Idiot du Jour

2020-09-05 Thread Thomas von Fintel via use-livecode
„I am known for making many more mistakes than not!“ Aren‘t we all? I guess using Cartesian coordinates for choosing points on a circle could produce some bias, though I have no clear idea how. So, what is your code? Thomas > Am 05.09.2020 um 19:15 schrieb Roger Guay via use-livecode > : > > I

Re: Contesting for Idiot du Jour

2020-09-05 Thread Thomas von Fintel via use-livecode
n??? > Thanks for playing, Thomas. > > Roger > >>>> On Sep 5, 2020, at 12:24 AM, Thomas von Fintel via use-livecode >>>> wrote: >> Having had no contact with Bertrand Paradox except reading the Wikipedia >> entries in English and German, my impr

Re: Contesting for Idiot du Jour

2020-09-05 Thread Thomas von Fintel via use-livecode
Having had no contact with Bertrand Paradox except reading the Wikipedia entries in English and German, my impression is that this is not a case of broken math but a case of an ill-defined problem. Saying that a chord of a circle is chosen at random seems to imply that all possible chords are ch

Re: Contesting for Idiot du Jour

2020-09-03 Thread Thomas von Fintel via use-livecode
I think the easiest way is to adjust the linear random function so that it produces higher numbers more frequently than lower numbers. More precisely, the frequency of 10 must be four times that of 5 (because the area quadruples if you double the radius). Or else the outer points have a lower p

Re: Parameters for functions and commands

2018-01-04 Thread Thomas von Fintel via use-livecode
e examples that functions are slightly simpler to code with, requiring one line instead of two to process returned values. It can also make code more readable: put theInternetDate(the date) into tToday updateTheRecordDate tToday Bob S On Jan 4, 2018, at 13:30 , Thomas von Fintel via use-livecode

Parameters for functions and commands

2018-01-04 Thread Thomas von Fintel via use-livecode
I am well aware that I shouldn't expect *everything* in Livecode to be intuitive, but this one bugs me: Having a handler like    function DoStuff_1 a, b   return a    end DoStuff_1 When you do "put DoStuff_1 (2,3)" the result is 2. But with    on DoStuff_2 a, b    put a    end Do