{
  "id": "fn-math-log1p",
  "dataComponent": "math",
  "heading": {
    "title": "log1p",
    "badges": ["Math", "JSMath"]
  },
  "synopsis": "Computes ln(1+x) more accurately for small x than log(1+x). One numeric argument > -1.",
  "codeBlocks": [
    "extend(\"math\")\\n\\nsput( math:log1p(0) )\\n# => 0\\n\\nsput( math:log1p(0.1) )\\n# => ~0.0953101798\\n"
  ],
  "notes": [
    "Accepts a single numeric argument > -1. This function is typically more precise than log(1+x) for small x."
  ]
}
