--- layout: base ---
{% assign first = false %} {%- if page.multiactivities -%} {%- else -%} {% if page.activities or page.exercise %} {% endif %} {%- endif -%}

{{ page.title }}

{% if page.prerequisites %}

Prerequisites

Before starting this lesson, you should be familiar with:
{% endif %}

Learning Objectives

After completing this lesson, learners should be able to:

Motivation

{{ page.motivation | markdownify }}

Concept map

{{ page.concept_map }}



Figure

{% if page.figure_legend %}
{{ page.figure_legend }}
{% endif %}



{{ content }}



{% if page.multiactivities %}

Activities

{%- assign idx_0 = 0 -%} {%- for activity in page.multiactivities -%} {%- assign preface_md = activity[0] -%} {%- capture preface -%} {%- include {{ preface_md }} -%} {%- endcapture -%} {{ preface | markdownify }}
Show activity for:   {%- assign close_call = "('id_activity_platform-" | append: idx_0 | append: "');return false;" -%} {%- assign fun = "change_activity_content_by_platform_" | append: idx_0 | append: close_call -%} {%- assign iap = "id_activity_platform-" | append: idx_0 -%} {%- for platform in platforms -%} {%- assign id = platform[0] | slugify -%} {%- assign activity_div = "-activity-div-" -%} {%- assign activity_div_i = id | append: activity_div | append: idx_0 -%}

{{ platform[0] }}

{%- assign includefile = platform[1] -%} {%- capture activity_content -%} {%- include {{ includefile }} -%}{%- endcapture -%} {%- assign ext = includefile | split: "." | last -%} {%- if ext == "ijm" -%} {%- highlight javascript -%} {{ activity_content }} {%- endhighlight -%} {%- elsif ext == "mat" -%} {%- highlight javascript -%} {{ activity_content }} {%- endhighlight -%} {%- elsif ext == "py" -%} {%- highlight python -%} {{ activity_content }} {%- endhighlight -%} {%- elsif ext == "groovy" -%} {%- highlight groovy -%} {{ activity_content }} {%- endhighlight -%} {%- elsif ext == "md" -%} {{ activity_content | markdownify }} {%- else -%} {{ activity_content }} {%- endif -%}
{%- endfor -%} {% assign idx_0 = idx_0 | plus:1 %}


{%- endfor -%} {% else %} {% if page.activity_preface %}

Activities

{{ page.activity_preface | markdownify }} {% endif %} {% if page.activities %}
Show activity for:   {%- for platform in page.activities -%}

{{ platform[0] }}

{%- assign includefile = platform[1] -%} {%- assign language = platform[2] -%} {%- capture activity -%} {%- include {{ includefile }} -%}{%- endcapture -%} {%- assign ext = includefile | split: "." | last -%} {%- if ext == "ijm" -%} {%- highlight javascript -%} {{ activity }} {%- endhighlight -%} {%- elsif ext == "py" -%} {%- highlight python -%} {{ activity }} {%- endhighlight -%} {%- elsif ext == "groovy" -%} {%- highlight groovy -%} {{ activity }} {%- endhighlight -%} {%- elsif ext == "md" -%} {{ activity | markdownify }} {%- else -%} {{ activity }} {%- endif -%}
{%- endfor -%} {% endif %} {% endif %} {% if page.exercises %}

Exercises

{% endif %} {% if page.exercise_preface %} {{ page.exercise_preface | markdownify }} {% endif %} {%- if page.exercises -%} Show exercise/solution for: {%- endif -%} {%- for platform in page.exercises -%}

{{ platform[0] }}

{%- assign includefile = platform[1] -%} {%- capture exercise -%} {%- include {{ includefile }} -%}{%- endcapture -%} {%- assign ext = includefile | split: "." | last -%} {%- if ext == "ijm" -%} {%- highlight javascript -%} {{ exercise }} {%- endhighlight -%} {%- elsif ext == "py" -%} {%- highlight python -%} {{ exercise }} {%- endhighlight -%} {%- elsif ext == "md" -%} {{ exercise | markdownify }} {%- else -%} {{ exercise }} {%- endif -%}
{%- endfor -%}


{% if page.assessment %}

Assessment

{{ page.assessment | markdownify }} {% endif %}
{% if page.keypoints %}

Key points

{% endif %}


Follow-up material

Recommended follow-up modules:

Learn more:

{% capture links %} {% include links.md %}{% endcapture %} {{ links | markdownify }}