Here you can find the source of invert(double slope)
public static double invert(double slope)
//package com.java2s; //License from project: LGPL public class Main { public static double invert(double slope) { return Math.pow(slope, -1); }//from w ww. jav a 2 s.c o m }