Interesting and Humour - page 315

 
 

Go to the pharmacy on the corner and buy medicine for Grandpa - the prescriptions are in the hallway, on the nightstand under the mirror. Other than that, go to the "kopeka" - get two bags of 1.5% milk, a loaf of bread and a pack of tea.
At the vegetable stand next to the bus stop, buy a couple of kilos of potatoes, half a kilo of onions and a cabbage. Keep all the receipts.

I forgot my mobile phone. Call daddy at work, tell him the pictures won't be ready today.
Also tell him I asked him to pick up the laundry on the way home. Before the call, run the program with the phone icon (on the desktop in the upper right corner)...

And record your dad's answer in a file with a *.wav extension.
Do your homework - even though you have one maths assignment, that's no reason to put it off until later in the evening. Textbook pages 116, 121 and 118.
Keep in mind, in the third problem you have to make up an equation, not fit the answer, which is at the end (plus it has a typo in it). For the rest of the problems, by the way, no answers are given.

After that, clean up your room. When you put everything in its place, count all the designer parts in a plastic jar, the number of discs with toys on the shelf, how many cars in the box and bionicles.
After that, you can open your browser and type these numbers, separated by dots, into the address bar. You will open the account management table of our home subnet.
In the password box, enter the answers to the second, third and first problem in the textbook.

Find our IP in the left column and carefully enter into the box next to it (where the payment method is a card) the last two digits of the receipt (from the code at the very bottom):
total for vegetables, tea, milk+bread, sustac, flexalis+wastewater tincture. Fill the remaining space with zeros and press the OK button.

After that, you can use the internet further. If an angry man calls, saying he's the "system administrator" and cursing into the phone, play back dad's answer from the file.
I hope it works out for you. And I'll come over tonight and tell you the tale of how one little hacker at the head of her group once broke down Microsoft servers and Arab terrorists.

Kisses!

Your mum.

marv

 

Whoever says correctly what the SS function does:

double SS(double p)
{
  return((p<=-1.0||p>=1.0 || (-0.5<=p && p<=0.5))?0.0:((-1.0<p && p<-0.5)?-1.0:1.0));
}

-there's a pie. :)

 
joo:

Whoever correctly tells what the SS function does:

-the pie. :)


If p is greater than 0.5 and less than 1, it returns 1.

If less than -0.5 and greater than -1, it returns -1.

In other cases it returns 0.

 
Anyone else have any options?
A puzzled Integer seems to be starting to check his answer. :)
 

what is it?


an activation function?

 
joo: Whoever correctly says what the SS function does:

-some pie. :)

MD written?

It could be simpler (more readable, but not guaranteed to be faster). Say, like this:

double SS(double p)
{
  return( 
         ( MathAbs( p ) >= 1 || MathAbs( p ) <= 0.5 ) 
           ? 0.0 
           : ( 
              ( p < 0 ) 
                ? -1.0 
                  :  1.0 
             ) 
       );
}
 
sergeev:

what is it?

sketch of a pedal drive for a beach catamaran

 
Mathemat:

DidMD write it?

No, I did! (with a little bit of pride in his voice).

Integer's answer is correct.


ZS. But you have to agree, colleagues, it looks a bit creepy. Well, what can you do - OCL is obligatory.

 
joo:

ZS. But you have to agree, colleagues, it looks a bit creepy. What can you do - the OCL obliges.

ENUM_TIMEFRAMES GetPeriodFromTime(const uchar StartHour = 8, const uchar StartMin = 15, 
   const uchar StopHour = 9, const uchar StopMin = 30) {
   short minCount = (StopHour - StartHour) * 60 + (StopMin - StartMin);
   minCount = minCount < 0 ? 60 * 24 - minCount : minCount;
   return(!StopMin && !StartMin ? (!(minCount % (12 * 60)) ? PERIOD_H12 : 
      (!(minCount % (8 * 60)) ? PERIOD_H8 : (!(minCount % (6 * 60)) ? PERIOD_H6 : (!(minCount % (4 * 60)) ? 
         PERIOD_H4 : (!(minCount % (2 * 60)) ? PERIOD_H2 : PERIOD_H1))))) : 
            ((!(StopMin % 30) && !(StartMin % 30) ? PERIOD_M30 : 
               (!(StopMin % 20) && !(StartMin % 20) ? PERIOD_M20 : 
                  (!(StopMin % 15) && !(StartMin % 15) ? PERIOD_M15 : 
                     (!(StopMin % 12) && !(StartMin % 12) ? 
                        PERIOD_M12 : (!(StopMin % 10) && !(StartMin % 10) ? 
                           PERIOD_M10 : (!(StopMin % 6) && !(StopMin % 6) ? 
                              PERIOD_M6 : 
                                 (!(StopMin % 5) && !(StartMin % 5) ? 
                                    PERIOD_M5 : 
                                       (!(StartMin % 4) && !(StopMin % 4) ? 
                                          PERIOD_M4 : (!(StartMin % 3) && !(StopMin % 3) ? 
                                             PERIOD_M3 : 
                                                (!(StartMin % 2) && !(StopMin % 2) ? 
                                                   PERIOD_M2 : PERIOD_M1))))))))))));
}
Reason: