using System; using System.Collections.Generic; using System.Linq; using System.Text; namespace AutoDiff { /// /// Represents a natural logarithm function /// [Serializable] public class Log : Term { /// /// Constructs a new instance of the class. /// /// The argument of the natural logarithm public Log(Term arg) { Arg = arg; } /// /// Accepts a terms visitor /// /// The term visitor to accept public override void Accept(ITermVisitor visitor) { visitor.Visit(this); } /// /// Gets the natural logarithm argument. /// public Term Arg { get; private set; } /// /// Accepts a term visitor with a generic result /// /// The type of the result from the visitor's function /// The visitor to accept /// /// The result from the visitor's visit function. /// public override TResult Accept(ITermVisitor visitor) { return visitor.Visit(this); } } }