stevenpetryk / mafs

React components for interactive math

Home Page:https://mafs.dev

Geek Repo:Geek Repo

Github PK Tool:Github PK Tool

Graph Logarithmic Functions using mafs

abdfnx opened this issue · comments

commented

Hi everyone,

How I can graph a logarithmic equation like 3 log10(x) + 1 using mafs ?

import {Mafs, Plot} from "mafs"

export function LogarithmicPlot() {
  return (
    <Mafs>
      <Plot.OfX y={x => 3 * Math.log10(x) + 1} />
    </Mafs>
  )
}