Skip to content
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
6,130 changes: 6,130 additions & 0 deletions calc-frontend/public/cosineDeriv.json

Large diffs are not rendered by default.

3,530 changes: 3,530 additions & 0 deletions calc-frontend/public/cubicDeriv.json

Large diffs are not rendered by default.

6,130 changes: 6,130 additions & 0 deletions calc-frontend/public/eDeriv.json

Large diffs are not rendered by default.

3,530 changes: 3,530 additions & 0 deletions calc-frontend/public/linearDeriv.json

Large diffs are not rendered by default.

6,136 changes: 6,136 additions & 0 deletions calc-frontend/public/lnDeriv.json

Large diffs are not rendered by default.

3,530 changes: 3,530 additions & 0 deletions calc-frontend/public/quadDeriv.json

Large diffs are not rendered by default.

6,130 changes: 6,130 additions & 0 deletions calc-frontend/public/sineDeriv.json

Large diffs are not rendered by default.

6,130 changes: 6,130 additions & 0 deletions calc-frontend/public/tanDeriv.json

Large diffs are not rendered by default.

35 changes: 26 additions & 9 deletions calc-frontend/src/components/Cosine/CosineDeriv.tsx
Original file line number Diff line number Diff line change
@@ -1,30 +1,47 @@
import { useLayoutEffect, useRef } from "react";
import CosineDerivGraph from "./CosineDerivGraph"
import { useLayoutEffect, useState, useRef } from "react";
import Plot from "react-plotly.js";

function CosineDeriv() {

const [figData, setFigData] = useState<any | null>(null);
const container = useRef(null);

useLayoutEffect(() =>{
//@ts-ignore
let MQ = MathQuill.getInterface(2);
MQ.StaticMath(container.current, { })

}, []);
fetch("/cosineDeriv.json")
.then((res) => res.json())
.then((json) => setFigData(json));

}, []);
return (
<div>
<div className="flex">

<div>
<div className="flex">
<div ref={container} className="center-header">
\frac&#123;d&#125;&#123;dx&#125;(\cos(x))
</div>
</div>

<div className="graph-outer-box" >
<CosineDerivGraph />
</div>
<div className="flex justify-center">
<div className="plotly-graph-div graph-frame">
{figData && (
<Plot
data={figData.data}
layout={{
...figData.layout,
margin: { l: 40, r: 40, t: 40, b: 40 },
}}
frames={figData.frames}
config={figData.config}
style={{ width: "100%", height: "100%" }}
/>
)}
</div>
</div>
</div>

)
}

Expand Down
15 changes: 0 additions & 15 deletions calc-frontend/src/components/Cosine/CosineDerivGraph.tsx

This file was deleted.

33 changes: 25 additions & 8 deletions calc-frontend/src/components/Cubic/CubicDeriv.tsx
Original file line number Diff line number Diff line change
@@ -1,30 +1,47 @@
import { useLayoutEffect, useRef } from "react";
import CubicDerivGraph from "./CubicDerivGraph"
import { useLayoutEffect, useState, useRef } from "react";
import Plot from "react-plotly.js";

function CubicDeriv() {

const [figData, setFigData] = useState<any | null>(null);
const container = useRef(null);

useLayoutEffect(() =>{
//@ts-ignore
let MQ = MathQuill.getInterface(2);
MQ.StaticMath(container.current, { })

}, []);
fetch("/cubicDeriv.json")
.then((res) => res.json())
.then((json) => setFigData(json));

}, []);
return (
<div>

<div>
<div className="flex">
<div ref={container} className="center-header">
\frac&#123;d&#125;&#123;dx&#125;(x^3)
</div>
</div>

<div className="graph-outer-box" >
<CubicDerivGraph />
</div>
<div className="flex justify-center">
<div className="plotly-graph-div graph-frame">
{figData && (
<Plot
data={figData.data}
layout={{
...figData.layout,
margin: { l: 40, r: 40, t: 40, b: 40 },
}}
frames={figData.frames}
config={figData.config}
style={{ width: "100%", height: "100%" }}
/>
)}
</div>
</div>
</div>

)
}

Expand Down
15 changes: 0 additions & 15 deletions calc-frontend/src/components/Cubic/CubicDerivGraph.tsx

This file was deleted.

33 changes: 24 additions & 9 deletions calc-frontend/src/components/Euler/EulerDeriv.tsx
Original file line number Diff line number Diff line change
@@ -1,32 +1,47 @@
import { useLayoutEffect, useRef } from "react";
import EulerDerivGraph from "./EulerDerivGraph"
import { useLayoutEffect, useState, useRef } from "react";
import Plot from "react-plotly.js";

function EulerDeriv() {

const [figData, setFigData] = useState<any | null>(null);
const container = useRef(null);

useLayoutEffect(() =>{
//@ts-ignore
let MQ = MathQuill.getInterface(2);
MQ.StaticMath(container.current, { })

}, []);
fetch("/eDeriv.json")
.then((res) => res.json())
.then((json) => setFigData(json));

}, []);
return (


<div>
<div>
<div className="flex">
<div ref={container} className="center-header">
\frac&#123;d&#125;&#123;dx&#125;(e^x)
</div>
</div>

<div className="graph-outer-box" >
<EulerDerivGraph />
</div>
<div className="flex justify-center">
<div className="plotly-graph-div graph-frame">
{figData && (
<Plot
data={figData.data}
layout={{
...figData.layout,
margin: { l: 40, r: 40, t: 40, b: 40 },
}}
frames={figData.frames}
config={figData.config}
style={{ width: "100%", height: "100%" }}
/>
)}
</div>
</div>
</div>

)
}

Expand Down
15 changes: 0 additions & 15 deletions calc-frontend/src/components/Euler/EulerDerivGraph.tsx

This file was deleted.

32 changes: 24 additions & 8 deletions calc-frontend/src/components/Line/LineDeriv.tsx
Original file line number Diff line number Diff line change
@@ -1,31 +1,47 @@
import { useLayoutEffect, useRef } from "react";
import LineDerivGraph from "./LineDerivGraph"
import { useLayoutEffect, useState, useRef } from "react";
import Plot from "react-plotly.js";

function LineDeriv() {

const [figData, setFigData] = useState<any | null>(null);
const container = useRef(null);

useLayoutEffect(() =>{
//@ts-ignore
let MQ = MathQuill.getInterface(2);
MQ.StaticMath(container.current, { })

}, []);
fetch("/linearDeriv.json")
.then((res) => res.json())
.then((json) => setFigData(json));

}, []);
return (

<div>
<div>
<div className="flex">
<div ref={container} className="center-header">
\frac&#123;d&#125;&#123;dx&#125;(x)
</div>
</div>

<div className="graph-outer-box" >
<LineDerivGraph />
</div>
<div className="flex justify-center">
<div className="plotly-graph-div graph-frame">
{figData && (
<Plot
data={figData.data}
layout={{
...figData.layout,
margin: { l: 40, r: 40, t: 40, b: 40 },
}}
frames={figData.frames}
config={figData.config}
style={{ width: "100%", height: "100%" }}
/>
)}
</div>
</div>
</div>

)
}

Expand Down
15 changes: 0 additions & 15 deletions calc-frontend/src/components/Line/LineDerivGraph.tsx

This file was deleted.

34 changes: 24 additions & 10 deletions calc-frontend/src/components/NatLog/NatLogDeriv.tsx
Original file line number Diff line number Diff line change
@@ -1,33 +1,47 @@
import { useLayoutEffect, useRef } from "react";
import NatLogDerivGraph from "./NatLogDerivGraph"
import { useLayoutEffect, useState, useRef } from "react";
import Plot from "react-plotly.js";

function NatLogDeriv() {

const [figData, setFigData] = useState<any | null>(null);
const container = useRef(null);

useLayoutEffect(() =>{
//@ts-ignore
let MQ = MathQuill.getInterface(2);
MQ.StaticMath(container.current, { })

}, []);
fetch("/lnDeriv.json")
.then((res) => res.json())
.then((json) => setFigData(json));

}, []);
return (



<div>
<div>
<div className="flex">
<div ref={container} className="center-header">
\frac&#123;d&#125;&#123;dx&#125;(\ln(x))
</div>
</div>

<div className="graph-outer-box" >
<NatLogDerivGraph />
</div>
<div className="flex justify-center">
<div className="plotly-graph-div graph-frame">
{figData && (
<Plot
data={figData.data}
layout={{
...figData.layout,
margin: { l: 40, r: 40, t: 40, b: 40 },
}}
frames={figData.frames}
config={figData.config}
style={{ width: "100%", height: "100%" }}
/>
)}
</div>
</div>
</div>

)
}

Expand Down
15 changes: 0 additions & 15 deletions calc-frontend/src/components/NatLog/NatLogDerivGraph.tsx

This file was deleted.

Loading