Re: Eureqa - Is there a way to simulate a remainder function?

58 views
Skip to first unread message

Michael Schmidt

unread,
May 15, 2013, 7:32:41 PM5/15/13
to eureqa...@googlegroups.com
Hmm... there's a modulo building-block, mod(x,y)

You might also using the floor(x) function to round something to an integer. The easiest way to have a function that only returns even numbers would be:

y = 2*floor( f(x) )

Michael



On Mon, May 13, 2013 at 10:56 AM, <bene...@gbg.bg> wrote:
Trying to find a function that only returns even numbers. I guess at some place the function checks results, divides by 2 and does different things depending on whether the remain is 1 or 0. Couldn't find a "Remain" function among the ones offered as choices. Is there any way to simulate it?

--
You received this message because you are subscribed to the Google Groups "Eureqa Group" group.
To unsubscribe from this group and stop receiving emails from it, send an email to eureqa-group...@googlegroups.com.
For more options, visit https://groups.google.com/groups/opt_out.
 
 

Reply all
Reply to author
Forward
0 new messages