Skip to content
Snippets Groups Projects
Commit e25dd381 authored by Chris Sangwin's avatar Chris Sangwin
Browse files

Reinstate check on moodle version to run grunt (still fails). Add example to docs.

parent dbef7095
No related branches found
No related tags found
No related merge requests found
......@@ -164,7 +164,7 @@ jobs:
run: moodle-plugin-ci mustache
- name: Grunt
if: ${{ always() }}
if: ${{ matrix.moodle-branch == 'MOODLE_401_STABLE' }}
run: moodle-plugin-ci grunt
- name: PHPUnit tests
......
......@@ -115,6 +115,13 @@ Now use:
{@plot(pg2(x), [x,(x0-5),(x0+5)], [y,-10,10], [legend,false])@}
A further example of a step functio:
step_fn(x,x0) := unit_step(x-x0-1/2) - unit_step(x-x0+1/2) + und*kron_delta(x,x0+1/2)+ und*kron_delta(x,x0-1/2);
p1:sum(step_fn(x,2*k),k,-3,3);
which can be used with `{@plot(p1,[x,-5,5])@}`.
For a discontinuous function, with end points, add in discrete plots.
C:-5;
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Please register or to comment