Tabnine Logo
Inverse.selfExpand
Code IndexAdd Tabnine to your IDE (free)

How to use
selfExpand
method
in
jscl.math.function.Inverse

Best Java code snippets using jscl.math.function.Inverse.selfExpand (Showing top 20 results out of 315)

origin: org.solovyev/jscl

public Generic derivative(int n) {
  return new Inverse(parameters[0]).selfExpand();
}
origin: org.solovyev/jscl

public Generic derivative(int n) {
  if (n == 0) {
    return new Inverse(parameters[1]).selfExpand();
  } else {
    return parameters[0].multiply(new Inverse(parameters[1]).selfExpand().pow(2).negate());
  }
}
origin: org.solovyev/jscl

public Generic derivative(int n) {
  return Constants.Generic.HALF.multiply(new Inverse(selfExpand()).selfExpand());
}
origin: org.solovyev/jscl

public Generic derivative(int n) {
  return new Inverse(
      JsclInteger.valueOf(1).subtract(
          parameters[0].pow(2)
      )
  ).selfExpand();
}
origin: org.solovyev/jscl

public Generic derivative(int n) {
  return new Inverse(
      JsclInteger.valueOf(1).subtract(
          parameters[0].pow(2)
      )
  ).selfExpand();
}
origin: org.solovyev/jscl

public Generic derivative(int n) {
  return new Inverse(
      JsclInteger.valueOf(1).add(parameters[0].pow(2))
  ).selfExpand();
}
origin: org.solovyev/jscl

public Generic derivative(int n) {
  return Constants.Generic.THIRD.multiply(
      new Inverse(
          selfExpand().pow(2)
      ).selfExpand()
  );
}
origin: org.solovyev/jscl

public Generic derivative(int n) {
  return new Inverse(
      JsclInteger.valueOf(1).add(parameters[0].pow(2))
  ).selfExpand().negate();
}
origin: org.solovyev/jscl

public Generic solve() {
  if (degree == 1) {
    return get(0).multiply(new Inverse(get(1)).selfExpand()).negate();
  } else return null;
}
origin: org.solovyev/jscl

public Generic selfExpand() {
  if (parameters[0].compareTo(JsclInteger.valueOf(1)) == 0) {
    return new Inverse(parameters[1]).selfExpand();
  }
  try {
    return parameters[0].divide(parameters[1]);
  } catch (NotDivisibleException e) {
  } catch (ArithmeticException e) {
  }
  return expressionValue();
}
origin: org.solovyev/jscl

public UnivariatePolynomial antiderivative() {
  UnivariatePolynomial p = newinstance();
  for (int i = degree; i >= 0; i--) {
    p.put(i + 1, get(i).multiply(new Inverse(JsclInteger.valueOf(i + 1)).selfExpand()));
  }
  return p;
}
origin: org.solovyev/jscl

public Generic derivative(int n) {
  return new Inverse(
      new Sqrt(
          JsclInteger.valueOf(1).subtract(parameters[0].pow(2))
      ).selfExpand()
  ).selfExpand();
}
origin: org.solovyev/jscl

public Generic derivative(int n) {
  return new Inverse(
      new Sqrt(
          parameters[0].pow(2).subtract(
              JsclInteger.valueOf(1)
          )
      ).selfExpand()
  ).selfExpand();
}
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 Generic antiDerivative(int n) throws NotIntegrableException {
  if (n == 0) {
    return new Pow(parameters[0], parameters[1].add(JsclInteger.valueOf(1))).selfExpand().multiply(new Inverse(parameters[1].add(JsclInteger.valueOf(1))).selfExpand());
  } else {
    return new Pow(parameters[0], parameters[1]).selfExpand().multiply(new Inverse(new Ln(parameters[0]).selfExpand()).selfExpand());
  }
}
origin: org.solovyev/jscl

public Generic derivative(int n) {
  return new Inverse(new Sqrt(JsclInteger.valueOf(1).subtract(parameters[0].pow(2))).selfExpand()).selfExpand().negate();
}
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 antiDerivative(@Nonnull Variable variable) throws NotIntegrableException {
  if (JsclMathEngine.getInstance().getAngleUnits() != AngleUnit.rad) {
    throw new NotIntegrableException(Messages.msg_20, getName());
  }
  final Generic parameter = parameters[0];
  if (parameter.isPolynomial(variable)) {
    final Polynomial polynomial = Polynomial.factory(variable).valueOf(parameter);
    if (polynomial.degree() == 1) {
      final Generic elements[] = polynomial.elements();
      return new Inverse(elements[1]).selfExpand().multiply(antiDerivative(0));
    } else {
      throw new NotIntegrableException(this);
    }
  } else {
    throw new NotIntegrableException(this);
  }
}
origin: org.solovyev/jscl

void compute(Fraction fraction) {
  Debug.println("antiDerivative");
  Debug.increment();
  Generic g[] = fraction.getParameters();
  Generic r[] = reduce(g[0], g[1]);
  r = divideAndRemainder(r[0], r[1]);
  Generic s = new Inverse(r[2]).selfExpand();
  Generic p = r[0].multiply(s);
  Generic a = r[1].multiply(s);
  result = p.antiDerivative(factory.variable()).add(hermite(a, g[1]));
  Debug.decrement();
}
origin: org.solovyev/jscl

public static Generic compute(Root root, Variable variable) throws NotIntegrableException {
  int d = root.degree();
  Generic a[] = root.getParameters();
  boolean b = d > 0;
  b = b && a[0].negate().isIdentity(variable);
  for (int i = 1; i < d; i++) b = b && a[i].signum() == 0;
  b = b && a[d].compareTo(JsclInteger.valueOf(1)) == 0;
  if (b) {
    return new Pow(
        a[0].negate(),
        new Inverse(JsclInteger.valueOf(d)).selfExpand()
    ).antiDerivative(0);
  } else {
    throw new NotIntegrableException();
  }
}
jscl.math.functionInverseselfExpand

Popular methods of Inverse

  • <init>
  • expressionValue
  • parameter
  • selfSimplify

Popular in Java

  • Making http requests using okhttp
  • getContentResolver (Context)
  • notifyDataSetChanged (ArrayAdapter)
  • onRequestPermissionsResult (Fragment)
  • Charset (java.nio.charset)
    A charset is a named mapping between Unicode characters and byte sequences. Every Charset can decode
  • Date (java.sql)
    A class which can consume and produce dates in SQL Date format. Dates are represented in SQL as yyyy
  • HashSet (java.util)
    HashSet is an implementation of a Set. All optional operations (adding and removing) are supported.
  • SortedSet (java.util)
    SortedSet is a Set which iterates over its elements in a sorted order. The order is determined eithe
  • Executors (java.util.concurrent)
    Factory and utility methods for Executor, ExecutorService, ScheduledExecutorService, ThreadFactory,
  • FileUtils (org.apache.commons.io)
    General file manipulation utilities. Facilities are provided in the following areas: * writing to a
  • Top 12 Jupyter Notebook extensions
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