Difference: REPLAndStandardPythonProgramming (5 vs. 6)

Revision 62020-05-05 - UliRaich

Line: 1 to 1
 
META TOPICPARENT name="Exercises"

Course on Internet of Things

Exercises Session 1:

Line: 24 to 24
 
  • a-b

  • a*b

  • a/b

Changed:
<
<
Which result do you observe for division? Can you correct?
>
>
If you use integer format when printing the result, you will see the result truncated to an integer. Can you correct changing the format?
  Improve this program asking the user to enter 2 real numbers (floats) separated by a space. This is how it should look like:
Line: 78 to 78
 
  • The geometric number series:
    geometric.png
  • The harmonic number series:
    harmonic.png
    Can you tell what the following series calculate?
Changed:
<
<
ln2.png pi.png e.png
>
>
ln2.png pi.png

wallis1.png

e.png
 Add these series to your class and try. Write a test script exercising the different methods.

When running on a PC you may want to plot the series as well.

Line: 98 to 98
 
META FILEATTACHMENT attachment="pi.png" attr="" comment="" date="1588596529" name="pi.png" path="pi.png" size="2785" user="UliRaich" version="1"
META FILEATTACHMENT attachment="harmonic.png" attr="" comment="" date="1588596798" name="harmonic.png" path="harmonic.png" size="1631" user="UliRaich" version="1"
META FILEATTACHMENT attachment="e.png" attr="" comment="" date="1588596991" name="e.png" path="e.png" size="1931" user="UliRaich" version="1"
Added:
>
>
META FILEATTACHMENT attachment="wallis.png" attr="" comment="" date="1588689113" name="wallis.png" path="wallis.png" size="6212" user="UliRaich" version="1"
META FILEATTACHMENT attachment="wallis1.png" attr="" comment="" date="1588689317" name="wallis1.png" path="wallis1.png" size="15114" user="UliRaich" version="1"
 
This site is powered by the TWiki collaboration platform Powered by PerlCopyright © 2008-2024 by the contributing authors. All material on this collaboration platform is the property of the contributing authors.
Ideas, requests, problems regarding TWiki? Send feedback