Ubidots Developer Guides
Help CenterAPI ReferenceData APICommunity
  • Welcome to our Dev Guides
  • ⚡️ Getting Started
    • What is Ubidots?
    • Devices, Variables, and Dots
    • Technical FAQs
    • Business FAQs
  • 🧩Integration Guides
    • Industrial IoT
      • Advantech
      • Amplified Engineering
      • AWS
      • Azimut
      • Balena
      • Bivocom
      • CESVA
      • Controllino
      • Digital Communications Technologies (DCT)
      • Everactive
      • Golioth
      • Kepware
      • Kunbus
      • Monnit
      • MultiTech
      • NCD.io
      • Node-RED
      • Omicron IoT
      • Red Lion
      • Robustel
      • Senquip
      • Sielco
      • Siemens
      • Strega
      • vNode
      • WAGO
      • Weintek
      • YuDash
    • Cellular
      • Blues Wireless
      • Digi International
      • Hologram
      • Monogoto
      • Particle
      • Quectel
      • Soracom
    • LoRaWAN
      • AonChip
      • Chirpstack
      • Decentlab
      • Helium
      • ioThings
      • LORIOT
      • Milesight
      • MOKOSmart
      • RAKwireless
      • Sagemcom
      • Seeed Studio
      • Senet
      • The Things Industries
        • The Things Stack
        • The Things Network
    • Sigfox
      • Digital Matter
      • McThings
      • Sigfox
      • Suntech
      • Thinxtra
      • UnaBiz
    • Satellite
      • Swarm
    • Dev Kits
      • Adafruit
      • Advantech
      • AloriumTech
      • Arduino
      • Blues Wireless
      • DFRobot
      • Dragino
      • Electric Imp
      • Espressif Systems
      • McThings
      • Microchip Technology
      • Onion
      • Particle
      • Pycom
      • RAKwireless
      • Raspberry Pi
      • Seeed Studio
      • Sodaq
      • STMicroelectronics
      • Texas Instruments
      • Thinxtra
      • Verse Technology
    • Weather
      • Weather Plugins
      • Ambient Weather
    • Tools
      • Gambit Communications
      • PubNub
  • 📊Dashboards & Widgets
    • HTML Canvas
      • 3rd party packages
      • Preload Dashboard data
      • Built-in library
        • Properties
        • Methods
        • Listening events
        • API
      • Examples
        • Basics
        • Create an LCD screen with the HTML Canvas
        • Interacting with dashboard data
        • Change header's custom style
        • Adding real time using Socket.IO
        • Delete Variable data from a Device
        • Delete Variable data from Groups or Types of Devices
        • Navigation through Dashboard
        • Using a React library
      • Code editor
        • HTML Tab
        • CSS Tab
        • JavaScript Tab
    • Custom UI
      • Paragraph
      • Input combo
        • Text
        • Numeric
        • Numeric with buttons
        • Date
        • Time
        • Toggle
        • Dropdown
        • Multiple selection dropdown
      • Button
    • Custom Style
      • Dashboards
      • Widgets
    • Line chart
    • Pages
      • Getting started
      • Development
      • API
        • Page creation
        • Publish
  • 🤖UbiFunctions
    • Getting Started
      • Creating an UbiFunction
      • Coding an UbiFunction
      • Testing an UbiFunction
      • Authentication
      • Execution Time
      • Logs
    • Runtimes
      • Python
      • NodeJS
      • Custom Runtimes
    • Invocation
      • Time-based Trigger
      • HTTPS
      • MQTT Publish
      • Ubidots Event
    • Advanced
      • Account Token
      • Execution time
      • Raw Functions
      • CORS Policy
      • Async Execution
      • DaaS (Decoder as a Service)
      • Developing and Managing UbiFunctions with Ubidots CLI
    • Examples
    • Specs and Limits
    • Storage
      • File Storage API
      • Mutiple files
  • 🧩Plugins
    • What is a plugin?
    • Public vs. Private
    • Public plugins
      • Cron
      • Webhook
    • Private Plugins
      • Cron
      • Webhook
      • Widget
      • Device
    • Plugins development
      • Getting started
      • Cron
      • Webhook
      • Widget
      • Device
      • view.xml
      • view_widget.xml
    • Plugins deployment
      • Cron and Webhook
      • Widget
      • Device
    • Using the plugins
      • Cron and Webhook
      • Widget
      • Device
  • 📈SYNTHETIC VARIABLES
    • Getting started
      • Creating synthetic variables
      • Synthetic Variables' editor
    • Expressions
      • Mathematical
      • Date range
      • Rolling
      • Special functions
    • Specs and limits
    • Examples
      • Mathematical
      • Date range
      • Rolling
      • Special functions
  • ⌨️Developer tools
    • Javascript SDK
      • Overview
      • Getting started
      • Ubidots class
        • Get methods
        • Filter methods
        • Ubidots objects
          • Entity object
          • Paginator
      • Examples
    • CLI
      • Overview
      • Installing
      • Usage
      • SDK for UbiFunctions
  • 🏗️Apps
    • App builder
      • Custom sidebar
Powered by GitBook
On this page

Was this helpful?

Export as PDF
  1. SYNTHETIC VARIABLES
  2. Expressions

Mathematical

The following functions are supported by the Synthetic Variables mathematical expressions. These functions receive a variable's time series data as its arguments.

Syntax
Description

Returns the rounded integer greater or equal for each element in the variable x. The ceil function always rounds up to the nearest integer.

Returns the floating-point value rounded to the n digits after the decimal point for each element in the variable x. By default, n equals 2 in Ubidots.

Returns the sine in radians of each element in the variable x.

Returns the cosine in radians of each element in the variable x.

Returns the tangent of each element in the variable x.

Returns in radians the inverse sine of each element in the variable x.

Returns in radians the inverse sine of each element in the variable x.

Returns in radians the inverse tangent of each element in the variable x.

Returns in radians the trigonometric inverse tangent using the input variables x and y as Cartesian coordinates. Note: it will only perform the operation between values with the same timestamp.

Returns the hyperbolic sine of each element in the variable x.

Returns the hyperbolic cosine of each element in the variable x.

Returns the hyperbolic tangent of each element in the variable x.

Returns in radians the inverse hyperbolic sine of each element in the variable x.

Returns in radians the inverse hyperbolic cosine of each element in the variable x.

Returns in radians the inverse hyperbolic tangent of each element in the variable x.

Returns the exponential of each element in the variable x.

Returns the logarithm of each element in the variable x. By default, the base is the Euler's number.

Returns the absolute value of each element in the variable x.

Returns the square root value of each element in the variable x.

PreviousExpressionsNextDate range

Last updated 6 months ago

Was this helpful?

xandyrepresent variables as

📈
ceil(x)ceil(x)ceil(x)
round(x,n)round(x, n)round(x,n)
sin(x)sin(x)sin(x)
cos(x)cos(x)cos(x)
tan(x)tan(x)tan(x)
arcsin(x)arcsin(x)arcsin(x)
arccos(x)arccos(x)arccos(x)
arctan(x)arctan(x)arctan(x)
arctan2(x,y)arctan2(x, y)arctan2(x,y)
sinh(x)sinh(x)sinh(x)
cosh(x)cosh(x)cosh(x)
tanh(x)tanh(x)tanh(x)
arcsinh(x)arcsinh(x)arcsinh(x)
arccosh(x)arccosh(x)arccosh(x)
arctanh(x)arctanh(x)arctanh(x)
exp(x)exp(x)exp(x)
log(x,base)log(x, base)log(x,base)
abs(x)abs(x)abs(x)
sqrt(x)sqrt(x)sqrt(x)
time series or dots