Files
vf_react/src/views/AgentChat/neuratalk/components/Calculator/index.tsx
2025-11-22 08:57:37 +08:00

43 lines
1.5 KiB
TypeScript
Raw Blame History

This file contains ambiguous Unicode characters

This file contains Unicode characters that might be confused with other characters. If you think that this is intentional, you can safely ignore this warning. Use the Escape button to reveal them.

import Chat from "@/components/Chat";
import Question from "@/components/Question";
import Answer from "@/components/Answer";
const Calculator = () => {
return (
<Chat>
<Question>
solve this problem for me:
<br />
Find the derivative of f(x) = x³ + 2x² - 7
</Question>
<Answer>
<div className="mb-1">Sure here is the response:</div>
<div className="">
<p className="text-label-sm"> Step-by-step solution:</p>
<br />
<p>Well differentiate f(x) term by term:</p>
<ol className="list-decimal list-inside">
<li>
Derivative of x³ is: <br />
&nbsp;&nbsp;&nbsp;&nbsp; 3x²
</li>
<li>
Derivative of 2x² is: <br />
&nbsp;&nbsp;&nbsp;&nbsp; 2 × 2x = 4x
</li>
<li>
Derivative of constant -7 is: <br />
&nbsp;&nbsp;&nbsp;&nbsp; 0
</li>
</ol>
<br />
<p className="text-label-sm">🎯 Final Answer:</p>
<p>f&apos;(x) = 3x² + 4x</p>
</div>
</Answer>
</Chat>
);
};
export default Calculator;