Skip to content

Commit

Permalink
integrate with respect to any variable.
Browse files Browse the repository at this point in the history
  • Loading branch information
darkeclipz committed Dec 23, 2018
1 parent 8a6299d commit 668921e
Show file tree
Hide file tree
Showing 3 changed files with 5 additions and 3 deletions.
1 change: 1 addition & 0 deletions release_notes.md
Original file line number Diff line number Diff line change
Expand Up @@ -6,6 +6,7 @@
- Polar plot is activated when `phi`, `Phi`, `theta`, `Theta`, `r` or `R` is the variable.
- Unordered list for displaying a list of action results.
- Basic graph information (as a list).
- Integrate with respect to any variable.

# 23-12-2018

Expand Down
1 change: 1 addition & 0 deletions static/app.js
Original file line number Diff line number Diff line change
Expand Up @@ -408,6 +408,7 @@ var app = new Vue({
http.post('graph_info', { 'expression': this.expr() },
(result) => {
this.action_in = 'The graph $G$ contains the following properties:'; // +weight
this.action_out = "";
this.action_out_list.push('The degree row of $G$ is $' + result.out['degrees'] + '$.');
this.action_out_list.push('The sum of the degree row is $' + result.out['degrees_sum'] + '$.');
this.latex();
Expand Down
6 changes: 3 additions & 3 deletions templates/index.html
Original file line number Diff line number Diff line change
Expand Up @@ -131,7 +131,7 @@ <h1>$\oint$ Calcupy <small class="subtitle">Calculus powered graphical calculato
<button v-if="variables.length == 1" type="button" class="btn btn-primary" v-on:click="diff2(variables[0])">$\textrm{d}^2 / \textrm{d}{{variables[0]}}^2$</button>
<button v-if="variables.length > 1" v-for="v in variables" type="button" class="btn btn-primary" v-on:click="diff(v)">$\partial / \partial {{ v }}$</button>
<button v-if="variables.length > 1" v-for="v in variables" type="button" class="btn btn-primary" v-on:click="diff2(v)">$\partial^2 / \partial {{ v }}^2$</button>
<button v-if="variables.length == 1" type="button" class="btn btn-primary" v-on:click="integrate(variables[0])">$\int$</button>
<button v-if="variables.length > 0" v-for="v in variables" type="button" class="btn btn-primary" v-on:click="integrate(v)">$\int d{{v}}$</button>
<button v-if="variables.length == 1" type="button" class="btn btn-primary" v-on:click="integrate(variables[0], '0', 'T')">$\int_0^T$</button>
<button v-if="variables.length == 1" type="button" class="btn btn-primary" v-on:click="integrate(variables[0], '-oo', 'oo')">$\int_{-\infty}^{+\infty}$</button>
<button v-if="variables.length > 1 && is_algebraic" type="button" class="btn btn-primary" v-on:click="grad">$\nabla f$</button>
Expand Down Expand Up @@ -193,9 +193,9 @@ <h1>$\oint$ Calcupy <small class="subtitle">Calculus powered graphical calculato
</div>

<div v-if="action_out || action_out_list" id="action-result" :class="[ action_out ? 'fade-in' : '' ]" :key="action_out">
{{action_in}}
<div>{{action_in}}</div>
<hr/>
{{action_out}}
<div>{{action_out}}</div>
<ul v-if="action_out_list">
<li v-for="item in action_out_list">{{item}}</li>
</ul>
Expand Down

0 comments on commit 668921e

Please sign in to comment.