~ubuntu-branches/ubuntu/hoary/scilab/hoary

« back to all changes in this revision

Viewing changes to man/eng/mtlb/mtlb_beta.xml

  • Committer: Bazaar Package Importer
  • Author(s): Torsten Werner
  • Date: 2005-01-09 22:58:21 UTC
  • mfrom: (1.1.1 upstream)
  • Revision ID: james.westby@ubuntu.com-20050109225821-473xr8vhgugxxx5j
Tags: 3.0-12
changed configure.in to build scilab's own malloc.o, closes: #255869

Show diffs side-by-side

added added

removed removed

Lines of Context:
 
1
<?xml version="1.0" encoding="ISO-8859-1" standalone="no"?>
 
2
<!DOCTYPE MAN SYSTEM "../../manrev.dtd">
 
3
<MAN>
 
4
  <LANGUAGE>eng</LANGUAGE>
 
5
  <TITLE>mtlb_beta</TITLE>
 
6
  <TYPE>M2SCI function</TYPE>
 
7
  <DATE>June 2004</DATE>
 
8
 
 
9
  <SHORT_DESCRIPTION name="mtlb_beta">Matlab beta emulation function</SHORT_DESCRIPTION>
 
10
 
 
11
  <DESCRIPTION>
 
12
 
 
13
    <P>Matlab and Scilab <VERB>beta</VERB> behave differently in some particular cases:</P>
 
14
 
 
15
    <DESCRIPTION_INDENT>
 
16
    <DESCRIPTION_ITEM>
 
17
    <ITEMIZE>
 
18
      <ITEM>
 
19
        <SP>
 
20
        With inputs having different sizes: Matlab <VERB>beta</VERB> input parameters must have
 
21
        the same size unless one of them is a scalar. In Scilab <VERB>beta</VERB> input parameters
 
22
        must have the same size even if one of them is a scalar.
 
23
        </SP>
 
24
      </ITEM>
 
25
    </ITEMIZE>
 
26
    </DESCRIPTION_ITEM>
 
27
    </DESCRIPTION_INDENT>
 
28
 
 
29
    <P>
 
30
    The function <VERB>mtlb_beta(A,B)</VERB> is used by
 
31
    <VERB>mfile2sci</VERB> to replace <VERB>beta(A,B)</VERB> when it was not
 
32
    possible to know what were the inputs while porting Matlab code to Scilab. This function will
 
33
    determine the correct semantic at run time. If you want to have a
 
34
    more efficient code it is possible to replace <VERB>mtlb_beta</VERB> calls:
 
35
    </P>
 
36
 
 
37
    <DESCRIPTION_INDENT>
 
38
    <DESCRIPTION_ITEM>
 
39
    <ITEMIZE>
 
40
      <ITEM>
 
41
        <SP>
 
42
        If <VERB>A</VERB> is a scalar but not <VERB>B</VERB>
 
43
        <VERB>Y = mtlb_beta(A,B)</VERB> may be replaced by <VERB>C=B;C(:)=A;Y = mtlb_beta(C,B);</VERB>
 
44
        </SP>
 
45
      </ITEM>
 
46
 
 
47
      <ITEM>
 
48
        <SP>
 
49
        If <VERB>B</VERB> is a scalar but not <VERB>A</VERB>
 
50
        <VERB>Y = mtlb_beta(A,B)</VERB> may be replaced by <VERB>C=A;C(:)=B;Y = mtlb_beta(A,C);</VERB>
 
51
        </SP>
 
52
      </ITEM>
 
53
    </ITEMIZE>
 
54
    </DESCRIPTION_ITEM>
 
55
    </DESCRIPTION_INDENT>
 
56
 
 
57
    <P>Caution: <VERB>mtlb_beta</VERB> has not to be used for hand coded functions.</P>
 
58
 
 
59
  </DESCRIPTION>
 
60
 
 
61
  <AUTHORS>
 
62
    <AUTHORS_ITEM>V.C.</AUTHORS_ITEM>
 
63
  </AUTHORS>
 
64
</MAN>