Tabnine Logo
Exp
Code IndexAdd Tabnine to your IDE (free)

How to use
Exp
in
jscl.math.function

Best Java code snippets using jscl.math.function.Exp (Showing top 15 results out of 315)

origin: org.solovyev/jscl

public Generic selfElementary() {
  return new Exp(
      parameters[0]
  ).selfElementary().subtract(
      new Exp(
          parameters[0].negate()
      ).selfElementary()
  ).multiply(Constants.Generic.HALF);
}
origin: org.solovyev/jscl

public Generic selfElementary() {
  return selfExpand();
}
origin: org.solovyev/jscl

public Generic selfExpand() {
  if (parameters[0].signum() < 0) {
    return new Inverse(new Exp(parameters[0].negate()).selfExpand()).selfExpand();
  } else if (parameters[0].signum() == 0) {
    return JsclInteger.valueOf(1);
  }
  return expressionValue();
}
origin: org.solovyev/jscl

public Generic selfSimplify() {
    return new Inverse(new Exp(parameters[0].negate()).selfSimplify()).selfSimplify();
  } else if (parameters[0].signum() == 0) {
    return JsclInteger.valueOf(1);
      Generic result = JsclInteger.valueOf(1);
      for (Generic sumElement : sumElements) {
        result = result.multiply(new Exp(sumElement).selfSimplify());
  if (n[0].compareTo(JsclInteger.valueOf(1)) == 0 && n[1].compareTo(JsclInteger.valueOf(1)) == 0) ;
  else return new Pow(
      new Exp(n[2]).selfSimplify(),
      new Fraction(n[0], n[1]).selfSimplify()
  ).selfSimplify();
  return expressionValue();
origin: org.solovyev/jscl

  return g[0];
} else if (v instanceof Exp) {
  Generic g[] = ((Exp) v).getParameters();
  return new Exp(new Conjugate(g[0]).selfSimplify()).selfSimplify();
} else if (v instanceof Ln) {
  Generic g[] = ((Ln) v).getParameters();
origin: org.solovyev/jscl

void bodyToMathML(MathML element, boolean fenced) {
  if (fenced) {
    MathML e1 = element.element("mfenced");
    bodyToMathML(e1);
    element.appendChild(e1);
  } else {
    bodyToMathML(element);
  }
}
origin: org.solovyev/jscl

  @Nonnull
  public Variable newInstance() {
    return new Exp(null);
  }
}
origin: org.solovyev/jscl

public Generic antiDerivative(@Nonnull Variable variable) throws NotIntegrableException {
  Generic s = parameters[0];
  if (s.isPolynomial(variable)) {
    Polynomial p = Polynomial.factory(variable).valueOf(s);
    if (p.degree() == 1) {
      Generic a[] = p.elements();
      return new Inverse(a[1]).selfExpand().multiply(antiDerivative(0));
    } else throw new NotIntegrableException(this);
  } else throw new NotIntegrableException(this);
}
origin: org.solovyev/jscl

public void toMathML(MathML element, Object data) {
  int exponent = data instanceof Integer ? ((Integer) data).intValue() : 1;
  if (exponent == 1) bodyToMathML(element, false);
  else {
    MathML e1 = element.element("msup");
    bodyToMathML(e1, true);
    MathML e2 = element.element("mn");
    e2.appendChild(element.text(String.valueOf(exponent)));
    e1.appendChild(e2);
    element.appendChild(e1);
  }
}
origin: org.solovyev/jscl

public Generic selfElementary() {
  return new Exp(
      parameters[0]
  ).selfElementary().add(
      new Exp(
          parameters[0].negate()
      ).selfElementary()
  ).multiply(Constants.Generic.HALF);
}
origin: org.solovyev/jscl

public Generic antiDerivative(int n) throws NotIntegrableException {
  return selfExpand();
}
origin: org.solovyev/jscl

public Generic selfElementary() {
  return new Exp(
      Constants.Generic.I.multiply(parameters[0])
  ).selfElementary().add(
      new Exp(
          Constants.Generic.I.multiply(parameters[0].negate())
      ).selfElementary()
  ).multiply(Constants.Generic.HALF);
}
origin: org.solovyev/jscl

public Generic derivative(int n) {
  return selfExpand();
}
origin: org.solovyev/jscl

public Generic selfElementary() {
  final Generic power = I.multiply(parameters[0]);
  final Generic e = new Exp(power).selfElementary().subtract(new Exp(I.multiply(parameters[0].negate())).selfElementary()).multiply(I.negate().multiply(HALF));
  return e;
}
origin: org.solovyev/jscl

public Generic selfElementary() {
  return new Exp(
      new Ln(
          parameters[0]
      ).selfElementary().multiply(
          parameters[1]
      )
  ).selfElementary();
}
jscl.math.functionExp

Most used methods

  • <init>
  • antiDerivative
  • bodyToMathML
  • expressionValue
  • getParameters
  • selfElementary
  • selfExpand
  • selfSimplify

Popular in Java

  • Running tasks concurrently on multiple threads
  • setScale (BigDecimal)
  • scheduleAtFixedRate (Timer)
  • putExtra (Intent)
  • URLConnection (java.net)
    A connection to a URL for reading or writing. For HTTP connections, see HttpURLConnection for docume
  • ByteBuffer (java.nio)
    A buffer for bytes. A byte buffer can be created in either one of the following ways: * #allocate
  • Format (java.text)
    The base class for all formats. This is an abstract base class which specifies the protocol for clas
  • ArrayList (java.util)
    ArrayList is an implementation of List, backed by an array. All optional operations including adding
  • ReentrantLock (java.util.concurrent.locks)
    A reentrant mutual exclusion Lock with the same basic behavior and semantics as the implicit monitor
  • Scheduler (org.quartz)
    This is the main interface of a Quartz Scheduler. A Scheduler maintains a registry of org.quartz.Job
  • Github Copilot alternatives
Tabnine Logo
  • Products

    Search for Java codeSearch for JavaScript code
  • IDE Plugins

    IntelliJ IDEAWebStormVisual StudioAndroid StudioEclipseVisual Studio CodePyCharmSublime TextPhpStormVimGoLandRubyMineEmacsJupyter NotebookJupyter LabRiderDataGripAppCode
  • Company

    About UsContact UsCareers
  • Resources

    FAQBlogTabnine AcademyTerms of usePrivacy policyJava Code IndexJavascript Code Index
Get Tabnine for your IDE now