All Downloads are FREE. Search and download functionalities are using the official Maven repository.

com.github.drstefanfriedrich.f2blib.ast.Sin Maven / Gradle / Ivy

Go to download

Parse mathematical function expressions, convert them to Java bytecode, and evaluate them very quickly

There is a newer version: 1.1.0
Show newest version
/*****************************************************************************
 *
 * Copyright (c) 2019 Stefan Friedrich
 *
 * This program and the accompanying materials are made available under the
 * terms of the Eclipse Public License 2.0 which is available at
 * https://www.eclipse.org/legal/epl-2.0/
 *
 * SPDX-License-Identifier: EPL-2.0
 *
 ******************************************************************************/

package com.github.drstefanfriedrich.f2blib.ast;

import com.github.drstefanfriedrich.f2blib.visitor.DoubleVisitor;
import com.github.drstefanfriedrich.f2blib.visitor.Visitor;

/**
 * Sine.
 */
public final class Sin extends UnaryExpression {

    public Sin(Expression expression) {
        super(expression);
    }

    @Override
    public  T accept(Visitor visitor) {
        return visitor.visitSin(this);
    }

    @Override
    public double accept(DoubleVisitor visitor) {
        return visitor.visitSin(this);
    }

}




© 2015 - 2025 Weber Informatics LLC | Privacy Policy