using System;
using System.Collections.Generic;
using System.Linq;
using System.Text;
namespace AutoDiff
{
///
/// A constant zero term. Similar to but represents only the value 0.
///
[Serializable]
public class Zero : Term
{
///
/// Accepts a term visitor
///
/// The term visitor to accept.
public override void Accept(ITermVisitor visitor)
{
visitor.Visit(this);
}
///
/// 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);
}
}
}