Skip to content

Commit

Permalink
Start of a Manipulate() function
Browse files Browse the repository at this point in the history
  • Loading branch information
axkr authored and tranleduy2000 committed Sep 9, 2019
1 parent 3c03807 commit 2c8c046
Show file tree
Hide file tree
Showing 3 changed files with 42 additions and 0 deletions.
20 changes: 20 additions & 0 deletions symja_android_library/doc/functions/Manipulate.md
Original file line number Diff line number Diff line change
@@ -0,0 +1,20 @@
## Manipulate

```
Manipulate(plot, {x, min, max})
```

> generate a JavaScript control for the expression `plot` which can be manipulated by a range slider `{x, min, max}`.
**Note**: This feature is not available on all supported platforms.

### Examples

In the console apps, this command shows an HTML page with a JavaScript plot control,
where the value of the variable `a` can be manipulated by a slider in the range `[0..10]`.

```
>> Manipulate(Plot(Sin(x)*Cos(1 + a*x), {x, 0, 2*Pi}), {a,0,10})
```

2 changes: 2 additions & 0 deletions symja_android_library/doc/index.md
Original file line number Diff line number Diff line change
Expand Up @@ -530,6 +530,7 @@ for a full description of their possible arguments, options, etc., see their ent
* [MachineNumberQ](functions/MachineNumberQ.md)
* [MangoldtLambda](functions/MangoldtLambda.md)
* [ManhattanDistance](functions/ManhattanDistance.md)
* [Manipulate](functions/Manipulate.md)
* [Map](functions/Map.md)
* [MapIndexed](functions/MapIndexed.md)
* [MapThread](functions/MapThread.md)
Expand Down Expand Up @@ -803,3 +804,4 @@ for a full description of their possible arguments, options, etc., see their ent
* [Xor](functions/Xor.md)
* [YuleDissimilarity](functions/YuleDissimilarity.md)
* [Zeta](functions/Zeta.md)

Original file line number Diff line number Diff line change
@@ -0,0 +1,20 @@
## Manipulate

```
Manipulate(plot, {x, min, max})
```

> generate a JavaScript control for the expression `plot` which can be manipulated by a range slider `{x, min, max}`.
**Note**: This feature is not available on all supported platforms.

### Examples

In the console apps, this command shows an HTML page with a JavaScript plot control,
where the value of the variable `a` can be manipulated by a slider in the range `[0..10]`.

```
>> Manipulate(Plot(Sin(x)*Cos(1 + a*x), {x, 0, 2*Pi}), {a,0,10})
```

0 comments on commit 2c8c046

Please sign in to comment.