SEC

The SEC function returns the secant of an angle, measured in radians. Learn more.

Video field
Math

In Google Sheets, the function SEC is a trigonometric function used to calculate the secant of an angle.

Here's how the SEC function works:

The "angle" parameter is the angle in radians for which you want to calculate the secant. The secant of an angle is the reciprocal of the cosine of that angle. Mathematically, sec(x) = 1/cos(x).

For example, if you want to calculate the secant of an angle that is 45 degrees (π/4 radians), you can use the formula =SEC(PI()/4). The PI() function returns the value of π, which is approximately 3.14159. The function will calculate the secant of the angle and return the result.

The SEC function is commonly used in trigonometry and mathematical calculations involving angles and ratios. It can be useful when working with data that involves periodic or cyclical patterns.

Want even more from Google Sheets?


With Softr, you can turn your spreadsheets into powerful web apps.You can give advanced roles and permissions to each user, build advanced logic and automation flows, customize the design to your needs, and much more.


Softr also offers a growing library of templates for internal tools, client portals, community hubs, and more. The templates come with a Google Sheet or an Airtable base that you can use to store and manage your data easily.


Try Softr now and build your custom web apps in 10 minutes no code required!