Main.java Source code

Java tutorial

Introduction

Here is the source code for Main.java

Source

//package com.java2s;

public class Main {
    public static double f(double t) {
        double bound = Math.pow(6. / 29, 3);
        double a = 1. / 3 * Math.pow(29. / 6, 2);
        double b = 4. / 29;
        double gamma = 1. / 3;
        if (t > bound) {
            return Math.pow(t, gamma);
        } else {
            return a * t + b;
        }
    }
}