diff --git a/docs/src/app/globals.css b/docs/src/app/globals.css index 875c01e..47050bf 100644 --- a/docs/src/app/globals.css +++ b/docs/src/app/globals.css @@ -31,3 +31,11 @@ body { text-wrap: balance; } } + +a:hover{ + color: rgb(0, 157, 255); +} + +a:active{ + color: rgb(7, 104, 164); +} diff --git a/docs/src/app/layout.tsx b/docs/src/app/layout.tsx index 7458b85..1375e96 100644 --- a/docs/src/app/layout.tsx +++ b/docs/src/app/layout.tsx @@ -1,6 +1,7 @@ import type { Metadata } from "next"; import { Inter } from "next/font/google"; import "./globals.css"; +import Scripts from "@/components/Scripts"; const inter = Inter({ subsets: ["latin"] }); @@ -18,7 +19,9 @@ export default function RootLayout({ }>) { return ( -
{children} + + {children}+ Example usage of the Calculator class: +
++ {` +from loganmatic import loganmatic + +print("Pi value", loganmatic.Pi) +print("Euler value", loganmatic.EulerNumber) +print("Absolute value", loganmatic.absoluteValue(-5)) +print("Factorial", loganmatic.factorial(5)) +print("Square root", loganmatic.squareRoot(25)) +print("Cubic root", loganmatic.cubicRoot(27)) +print("Factors", loganmatic.factor(12)) +print("Sine", loganmatic.sine(0.5)) +print("Cosine", loganmatic.cosine(0.5)) +print("Random number", loganmatic.random_number_between(1, 10)) +print("Root of linear equation", loganmatic.root_of_first_degree(2, 4)) +print("Roots of quadratic equation", loganmatic.root_of_second_degree(1, -3, 2)) + `} ++