Skip to main content link. Accesskey S
  • Anonymous
  • Log on
  • Help
  • IBM logo
  • IBM Forms wiki
  • All Wikis
  • Home
  • Community Articles
  • Product Documentation
  • Learning Center


Search

Advanced Search
IBM Translated Product Documentation...
 Forms Experience Builder 8 documentation

 Webform Server 8 documentation

 Forms Designer 8 documentation
 Extensible Forms Description Language XFDL 8.0

 Forms API 8 - Dev Guide

 Form Services Platform 8 documentation

 Forms Viewer 8 documentation

 Forms 8 and FileNet integration documentation

 Forms API 4 - Dev Guide
 Forms with Workflow 4
 Forms 4 and Mashup Center integration documentation

Tag Cloud

  • 3.0
  • 3.5
  • 3.5.1
  • 4.0
  • 4.0.0.1
  • 4.0.0.2
  • 8.0
  • accessibility
  • actions
  • API
  • app dev
  • button item
  • buttons
  • C
  • certificates
  • COM
  • compute
  • computes
  • configuring
  • creating
  • defining
  • demonstration
  • demos
  • deployment
  • deployment scenario
  • design
  • design tips
  • Designer
  • designing
  • dev guide
  • develop
  • developing
  • differences between Webform Server and Viewer
  • education
  • Enablement
  • enterprise
  • error messages
  • events
  • field
  • field item
  • FileNet
  • filtering
  • form
  • formatting
  • forms
  • forms experience builder
  • Forms Services Platform
  • FSP
  • functions
  • getting_started
  • Help
  • IBM Forms
  • images
  • installing
  • integrating
  • integrating, 4.0.0.1
  • items
  • JAVA
  • JavaScript API
  • language
  • languages
  • layout
  • lf_intro
  • math functions
  • methods
  • new_user
  • options
  • P8
  • performance
  • pipelines
  • pipes
  • printing
  • programming
  • Properties
  • samples
  • services
  • signature item
  • signatures
  • spec
  • string functions
  • strings
  • StrJava
  • submissions
  • table
  • tables
  • text
  • training
  • translation
  • Turbo
  • turbo_media
  • tutorials
  • utility functions
  • video
  • Viewer
  • viewer package
  • Webform Server
  • WebformServer
  • XFDL
  • XForms
  • XPath
InformationInformation
You are currently viewing machine translated content. IBM translation might be available. Click IBM Translated Product Documentation to see what is available.X


Home > Extensible Forms Description Language XFDL 8.0 > power (XForms function)
Rate this article 1 starRate this article 2 starsRate this article 3 starsRate this article 4 starsRate this article 5 stars
(Current editable edition)
Original noneditable edition
Current editable edition
(Original noneditable edition)

power (XForms function) 

expanded Abstract
collapsed Abstract
Calculates the value of xn, where you supply x and n.



Calculates the value of xn, where you supply x and n.

Syntax

   power(xvalue, nvalue)


Table 1. power parameter
ParameterTypeDescription
xvaluenumberThe base number. This is raised to the power of n.
nvaluenumberThe exponent. This is applied the x value.


Returns

A number representing the result, or NaN if the result is not a real number.

Example

The following model uses the power function to apply the Pythagorean theorem to the sides of a triangle. The user enters sides a and b into fields that are linked to the <a> and <b> data elements. Side c is then calculated by the xforms:bind, which uses the power function to get the square root of a2 + b2 . This value is then stored in the <c> data element.
   <xforms:model>
      <xforms:instance xmlns="">
         <root>
            <a/>
            <b/>
            <c/>
         </root>
      </xforms:instance>
      <xforms:bind nodeset="c"
         calculate="power(../a * ../a + ../b * ../b, 0.5)"/>
   </xforms:model>


Parent topic:
XForms utility functions

expanded Article information
collapsed Article information
Category:
Extensible Forms Description Language XFDL 8.0, Product Documentation,
Tags:
power function, utility functions, XForms functions, power, exponent, XFDL, 8.0, spec

This Version: Version 1 May 2, 2012 2:28:17 PM by IBM  IBMer

expanded Attachments (0)
collapsed Attachments (0)

 


expanded Versions (1)
collapsed Versions (1)
Version Comparison     
Version Date Changed by               Summary of changes
This version (1) May 2, 2012 2:28:17 PM IBM  
expanded Comments (0)
collapsed Comments (0)
Copy and paste this wiki markup to link to this article from another article in this wiki.
Go ElsewhereStay ConnectedSubscribe to RSSHelpAbout
  • All Lotus and WebSphere Portal wikis
  • IBM developerWorks
  • IBM Software support
  • IBM Social Business User Experience Blog
  • IBMSocialBizUX on Twitter
  • IBMSocialBizUX on Facebook
  • Lotus product forums
  • IBM Social Business UX blog
  • IBM Collaboration Solutions
  • Recently added feedRecently added
  • Recently edited feedRecently edited
  • Recently added comments feedRecently Added Comments
  • Wiki Help
  • Forgot user name/password
  • Wiki design feedback
  • Content feedback
  • About the wiki
  • About IBM
  • Privacy
  • Contact IBM
  • IBM Terms of use
  • Wiki terms of use