This repository has been archived on 2023-08-20. You can view files and clone it, but cannot push or open issues or pull requests.
|
public class Question1 {
|
|
|
|
public static void main(String args[]) {
|
|
System.out.println(machine_eps());
|
|
}
|
|
|
|
public static float machine_eps() {
|
|
float epsilon = 1.0f;
|
|
|
|
while ((1.0f + 0.5f * epsilon) != 1.0f){
|
|
epsilon = 0.5f * epsilon;
|
|
}
|
|
|
|
return epsilon;
|
|
}
|
|
}
|