-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathLimit.java
More file actions
33 lines (31 loc) · 791 Bytes
/
Limit.java
File metadata and controls
33 lines (31 loc) · 791 Bytes
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
/**
* Conversion of Limits.
*
* @author Mak Fazlic & Roberto Ferrari - Latex project.
* @version v1.0
*/
public class Limit extends Node
{
// instance variables
private final Node child;
private final Node from;
private final Node to;
/**
* Constructor for objects of class Limit.
* @param child expression Node
* @param from variable Node.
* @param to value Node.
*/
public Limit(final Node child, final Node from, final Node to) {
super();
this.child = child;
this.from = from;
this.to = to;
}
@Override
// Returns Latex of Limit
public String toLatex() {
return "\\lim_{" + from.toLatex() + "\\to " + to.toLatex() + "}"
+ "{" + child.toLatex() + "}";
}
}