<?xml version="1.0" encoding="UTF-8"?>
<rss xmlns:content="http://purl.org/rss/1.0/modules/content/" xmlns:dc="http://purl.org/dc/elements/1.1/" xmlns:rdf="http://www.w3.org/1999/02/22-rdf-syntax-ns#" xmlns:taxo="http://purl.org/rss/1.0/modules/taxonomy/" version="2.0">
  <channel>
    <title>topic Re: std deviation and square root in Application Development and Automation Discussions</title>
    <link>https://community.sap.com/t5/application-development-and-automation-discussions/std-deviation-and-square-root/m-p/3517084#M845887</link>
    <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hi,&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;You can use the SQRT to compute the square root.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Check the code.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;data: var(3) type n,&lt;/P&gt;&lt;P&gt;      sqt(3) type n.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;var = 100.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;sqt = sqrt( var ).&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;write: / sqt.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;For Std deviation, you need to compute it manually or by using the function module&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;'QRKT_STD_DEVIATION_SHEWHART'&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Reward if helpful.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Regards.&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
    <pubDate>Mon, 10 Mar 2008 08:44:32 GMT</pubDate>
    <dc:creator>Former Member</dc:creator>
    <dc:date>2008-03-10T08:44:32Z</dc:date>
    <item>
      <title>std deviation and square root</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/std-deviation-and-square-root/m-p/3517081#M845884</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;hi all&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;i have a requirement where i need to calculate the standard deviation and squre root of some variables.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;can anybody please tell how can i calculate that in abap.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;regards&lt;/P&gt;&lt;P&gt;vijay&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Mon, 10 Mar 2008 08:27:21 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/std-deviation-and-square-root/m-p/3517081#M845884</guid>
      <dc:creator>Vijay</dc:creator>
      <dc:date>2008-03-10T08:27:21Z</dc:date>
    </item>
    <item>
      <title>Re: std deviation and square root</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/std-deviation-and-square-root/m-p/3517082#M845885</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;You can use the function module&lt;/P&gt;&lt;P&gt;1. 'QRKT_STD_DEVIATION_SHEWHART'-Algorithms for Shewhart chart for s with internal dispersion and mean line&lt;/P&gt;&lt;P&gt;2.'QRKT_STD_DEVIATION_SHEWHART_2'- Algorithms for Shewhart chart for s with overall dispersion and mean line.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;You could also calculate it yourself of course - standard deviation is the square root of the sum of the square of the differences between the mean and each value divided by the number of values you have less one. &lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Reward points..&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Mon, 10 Mar 2008 08:32:02 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/std-deviation-and-square-root/m-p/3517082#M845885</guid>
      <dc:creator>Former Member</dc:creator>
      <dc:date>2008-03-10T08:32:02Z</dc:date>
    </item>
    <item>
      <title>Re: std deviation and square root</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/std-deviation-and-square-root/m-p/3517083#M845886</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hi,&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;try this code..&lt;/P&gt;&lt;PRE&gt;&lt;CODE&gt;
data : begin of it occurs 1,
num type p,
x_xbar type p, 
end of it.

data : num1 type p value 10.
data : tot type p,l(2),
total type p. " E(x - mean)^2
data : mean type p.
data : var type p,
sd type p.

do 5 times .
it-num = num1.
append it.
num1 = num1 + 10.
enddo.

loop at it .
tot = tot + it-num.
endloop.

describe table it lines l.

mean = tot / l.

loop at it .
it-x_xbar = ( it-num - mean ) * ( it-num - mean ).
total = total + it-x_xbar.
endloop.

var = ( total ) / ( l - 1 ).
sd = SQRT( var ).

write : sd.
&lt;/CODE&gt;&lt;/PRE&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;for square root&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;PRE&gt;&lt;CODE&gt;
DATA : in TYPE f VALUE 16 ,
out TYPE f .

CALL METHOD cl_foev_builtins=&amp;gt;square_root
EXPORTING
im_number = in
IMPORTING
ex_result = out.

WRITE out.
&lt;/CODE&gt;&lt;/PRE&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Regards,&lt;/P&gt;&lt;P&gt;Omkar.&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Mon, 10 Mar 2008 08:38:53 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/std-deviation-and-square-root/m-p/3517083#M845886</guid>
      <dc:creator>Former Member</dc:creator>
      <dc:date>2008-03-10T08:38:53Z</dc:date>
    </item>
    <item>
      <title>Re: std deviation and square root</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/std-deviation-and-square-root/m-p/3517084#M845887</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hi,&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;You can use the SQRT to compute the square root.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Check the code.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;data: var(3) type n,&lt;/P&gt;&lt;P&gt;      sqt(3) type n.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;var = 100.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;sqt = sqrt( var ).&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;write: / sqt.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;For Std deviation, you need to compute it manually or by using the function module&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;'QRKT_STD_DEVIATION_SHEWHART'&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Reward if helpful.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Regards.&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Mon, 10 Mar 2008 08:44:32 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/std-deviation-and-square-root/m-p/3517084#M845887</guid>
      <dc:creator>Former Member</dc:creator>
      <dc:date>2008-03-10T08:44:32Z</dc:date>
    </item>
  </channel>
</rss>

