ComfyUI Node Runs on cloud

Tangent

The older name for Derfuu's tangent node

By Derfuu·Created 3 years ago·Updated 2 years ago· 455
Tangent
    • FLOAT
    value1.00
    type_
    arcTan

    If you've opened an older workflow and found a bare node called just Tangent - no DF_ prefix - you're looking at a fossil from Derfuu_ComfyUI_ModdedNodes, a math-and-utility pack that's been floating around ComfyUI since 2023. It does exactly what the name says: feed it an angle, get back its tangent (or, with a toggle, the reverse - arctangent).

    The pack also ships DF_Tangent, with identical inputs and identical output, in the same Derfuu_Nodes/Math/Trigonometry menu. That's not a duplicate-listing glitch - both are genuinely registered. The bare Tangent reads as an older, pre-DF_-prefix class kept around so workflows that already reference it don't break, while the rest of the pack (DF_Sum, DF_Sinus, DF_Cosines, and so on) has settled on the DF_ naming convention. If you're building a new graph from scratch, use DF_Tangent instead - same behavior, but it's the name that matches everything else in the pack and the one more likely to keep getting maintained.

    How it works

    Three inputs:

    • value (FLOAT, default 1) - the angle, or, with arcTan on, the ratio you want the angle for.
    • type_ - RAD or DEG.
    • arcTan - flips the node from tangent to its inverse.

    One output, a FLOAT: tan(value) with arcTan off - which, unlike sine or cosine, isn't bounded and can swing to very large numbers near 90°/π⁄2 - or the inverse angle with arcTan on.

    Trig nodes like this one aren't something a normal txt2img or img2img workflow needs. They show up in more elaborate parametric setups - driving a rotation, staggering a value across a batch on a curve instead of a flat ramp, or any hand-built formula from before ComfyUI had an expression evaluator. If you know rgthree's Power Puter, that's the modern equivalent: one node, a typed formula, no per-operation wiring. Derfuu's approach predates that - one operation, one node.

    How to install it

    Grab the whole pack - there's no single-node install for a repo like this. ComfyUI Manager: search Derfuu_ComfyUI_ModdedNodes, install, restart. Manually:

    cd ComfyUI/custom_nodes
    git clone https://github.com/Derfuu/Derfuu_ComfyUI_ModdedNodes
    

    then restart. No models, no unusual dependencies - pure logic, so install rarely goes wrong.

    Common issues & troubleshooting

    The node isn't visible after installing. Restart the server, then hard-refresh the browser - a stale frontend cache is the standard cause and applies to basically any custom-node pack.

    A huge or inf value came out. Expected behavior near 90°/π⁄2 radians, where tangent itself blows up - not a bug in the node.

    Worth knowing long-term: Derfuu has a track record of deleting deprecated nodes outright on updates rather than keeping them around labeled "old" - people who've depended on the pack for a while have specifically called this out. If a workflow that used to open cleanly suddenly throws a missing-node error after an update, that's the likely reason; check the GitHub repo for a renamed equivalent before assuming your setup is broken. Given that history, treat a bare-named legacy node like this one as the thing more likely to eventually disappear - DF_Tangent is the safer long-term bet if you're wiring fresh.

    CategoryDerfuu_Nodes/Math/Trigonometry

    Inputs (3)

    NameTypeDefaultDescription
    valueFLOAT1.00
    type_COMBO2 options: RAD, DEG
    arcTanCOMBO2 options: false, true

    Outputs (1)

    NameTypeDescription
    FLOATFLOAT