How to build an equation with variables

I want to solve an equation below shows zero finder vi by the Newton Raphson:

z a * b * c * exp(-z/a),.

a, b, and c are variables

I can build the equation with constant a, b, c, but how do I build it?

Thank you very much!

Use the number to the string functions in the palette of string with the antiderivative of string concatenation to create a formula with your values of a, b and c.  Read the detailed help for more information about limitations on the variable names carefully.  'z' is the only variable in your formula for the detector zero.  Example is LV2009.

Lynn

Tags: NI Software

Similar Questions

  • How to run execute immediate with variables

    Hi friends,
    How to run execute immediate with variables in v_stmt below?
    I don't know how to declare value I have here.
    Set serveroutput on;
    DECLARE
       i        VARCHAR (20);
       v_stmt   VARCHAR2 (100);
    
       CURSOR c
       IS
          SELECT sqlid FROM temp1;
    
    
    BEGIN
       OPEN c;
    
       LOOP
          FETCH c INTO i;
          EXIT WHEN c%NOTFOUND;
          DBMS_OUTPUT.put_line (i);
          v_stmt := 'select * from table(dbms_xplan.display_cursor('&i',null))'
          execute immediate v_stmt;
       END LOOP;
    
       CLOSE c;
    END;
    /
    Regds,
    Kunwar.

    You must first use a variable binding (named ': v' in the SQL statement in my example):

    set serveroutput on;
    DECLARE
       i        VARCHAR (20);
       v_stmt   VARCHAR2 (100);
    
       CURSOR c
       IS
           -- modified for a quick test
          SELECT sql_id FROM v$sql where child_number > 2;
    
    BEGIN
       OPEN c;
    
       LOOP
          FETCH c INTO i;
          EXIT WHEN c%NOTFOUND;
          DBMS_OUTPUT.put_line (i);
          v_stmt := 'select * from table(dbms_xplan.display_cursor(:v,null))';
          execute immediate v_stmt using i;
       END LOOP;
    
       CLOSE c;
    END;
    /
    

    However because your SELECT statement returns multiple lines, you need to adapt your code to process all rows returned (as already suggested in first response to your message).

    Instead of using the PL/SQL, I recommend you to generate a SQL file using only SQL, and then run the generated SQL file.
    For example:

    spool edx.sql
    set serveroutput on
    declare
    v_stmt varchar2(100);
    v_q char(1):='''';
    begin
    dbms_output.put_line('spool edx.log');
    for s in (select sql_id from v$sql where child_number >2)
     loop
      dbms_output.put_line('select * from table(dbms_xplan.display_cursor(' || v_q || s.sql_id || v_q || ',null));');
     end loop;
     dbms_output.put_line('exit');
    end;
    /
    spool of
    

    This generates a file similar to:

    spool edx.log
    select * from table(dbms_xplan.display_cursor('5rygsj4dbw6jt',null));
    select * from table(dbms_xplan.display_cursor('5rygsj4dbw6jt',null));
    select * from table(dbms_xplan.display_cursor('5rygsj4dbw6jt',null));
    select * from table(dbms_xplan.display_cursor('fsbqktj5vw6n9',null));
    select * from table(dbms_xplan.display_cursor('6q42j0018w7t8',null));
    select * from table(dbms_xplan.display_cursor('a5mmhrrnpwjsc',null));
    select * from table(dbms_xplan.display_cursor('3c1kubcdjnppq',null));
    select * from table(dbms_xplan.display_cursor('3c1kubcdjnppq',null));
    select * from table(dbms_xplan.display_cursor('9gkq7rruycsjp',null));
    select * from table(dbms_xplan.display_cursor('f0wj261bm8snd',null));
    select * from table(dbms_xplan.display_cursor('ab3swhv5g138y',null));
    select * from table(dbms_xplan.display_cursor('6vgvyh4xw9c5g',null));
    select * from table(dbms_xplan.display_cursor('ak5crjygnpk60',null));
    select * from table(dbms_xplan.display_cursor('9p6bq1v54k13j',null));
    select * from table(dbms_xplan.display_cursor('19x1189chq3xd',null));
    select * from table(dbms_xplan.display_cursor('7sx5p1ug5ag12',null));
    select * from table(dbms_xplan.display_cursor('730vdzhng6m6g',null));
    select * from table(dbms_xplan.display_cursor('730vdzhng6m6g',null));
    select * from table(dbms_xplan.display_cursor('0v3dvmc22qnam',null));
    select * from table(dbms_xplan.display_cursor('0v3dvmc22qnam',null));
    select * from table(dbms_xplan.display_cursor('a1zv6wju3ftgv',null));
    select * from table(dbms_xplan.display_cursor('7ng34ruy5awxq',null));
    select * from table(dbms_xplan.display_cursor('7ng34ruy5awxq',null));
    select * from table(dbms_xplan.display_cursor('b2gnxm5z6r51n',null));
    select * from table(dbms_xplan.display_cursor('b2gnxm5z6r51n',null));
    select * from table(dbms_xplan.display_cursor('g4gp07gt2z920',null));
    select * from table(dbms_xplan.display_cursor('1gu8t96d0bdmu',null));
    select * from table(dbms_xplan.display_cursor('g00cj285jmgsw',null));
    select * from table(dbms_xplan.display_cursor('g00cj285jmgsw',null));
    select * from table(dbms_xplan.display_cursor('g00cj285jmgsw',null));
    select * from table(dbms_xplan.display_cursor('bn4b3vjw2mj3u',null));
    select * from table(dbms_xplan.display_cursor('38243c4tqrkxm',null));
    select * from table(dbms_xplan.display_cursor('2abjfnvy5rkyg',null));
    select * from table(dbms_xplan.display_cursor('350f5yrnnmshs',null));
    select * from table(dbms_xplan.display_cursor('350f5yrnnmshs',null));
    select * from table(dbms_xplan.display_cursor('3s1yukp05bzg6',null));
    select * from table(dbms_xplan.display_cursor('3s1yukp05bzg6',null));
    select * from table(dbms_xplan.display_cursor('1tgukkrqj3zhw',null));
    exit
    
    PL/SQL procedure successfully completed.
    

    Edited by: P. Forstmann March 20, 2013 19:06

    Edited by: P. Forstmann March 20, 2013 19:33

  • How to build a URL with Checksum in "JAVASCRIPT"?

    Hi all..

    Could someone help me how to construct a URL with "checksum" in javascript?

    With PL/SQL, we can use apex_util.prepare_url to get the url with checksum. How can I make if I build the URL in javascript?

    Please help me with this.

    Thank you

    Hello

    Just an idea, in your javascript code, you can call an ajax function to construct your URL with PL/SQL code and then return the URL and use it in your javascript code.
    I have never tried but maybe works.

    Kind regards
    SDDC

  • How to build the table with all the combinations of a source table?

    Hello

    I have a 2D array that contains the list of the power user-defined settings. The number of PSs (table rows) is not fixed. For example - 3 PSs:

    Stage of Min Max name

    PS1 3.0 3.6 0.3

    PS2 0.9 1.2 0.1

    PS3 1.7 1.9 0.1

    I need to build, from this list, a table of all the combinations as below:

    PS1 PS2 PS3

    3.0 0.9 1.7

    3.0 0.9 1.8

    3.0 0.9 1.9

    3.0 1.0 1.7

    3.0 1.0 1.8

    3.0 1.0 1.9

    3.0 1.1 1.7

    3.0 1.1 1.8

    3.0 1.1 1.9

    3.0 1.2-1.7

    3.0 1.2-1.8

    3.0 1.2-1.9

    3.3 0.9 1.7

    3.3 0.9 1.8

    3.3 0.9 1.9

    3.3 1.0 1.7

    3.3 1.0 1.8

    3.3 1.0 1.9

    3.3 1.1 1.7

    3.3 1.1 1.8

    3.3 1.1 1.9

    3.3 1.2 1.7

    3.3 1.2 1.8

    3.3 1.2 1.9

    3.6 0.9 1.7

    3.6 0.9 1.8

    3.6 0.9 1.9

    3.6 1.0 1.7

    3.6 1.0 1.8

    3.6 1.0 1.9

    3.6 1.1 1.7

    3.6 1.8 1.1

    3.6 1.1 1.9

    3.6 1.2 1.7

    3.6 1.2 1.8

    3.6 1.2 1.9

    How to build this table programmatically?

    (Note also that the number of rows in the source table is not fixed).

    Thanks in advance!

    Hi Berezka,

    using a magic of automatic indexing:

  • How to build the project with library error in adf adf

    Hello

    IM using jdev 11.1.2.3

    in my project I module 2 so we need to build the project with adf dependency libraries...

    Two copies of the way to build the project with trial and error in adf adf

    Timo

  • How to convert a SQL with variable

    Can Hello, please how I convert the underside with a dominant

    I need to be able to generate a plan to explain it, I think I should use cast.



    SELECT TO_NUMBER (OIL. REBALANCE_ORDER_ID UNIQUE_ID),
    OIL. ORDER_QTY,
    OIL. ORDER_TYPE,
    OIL. ORDER_SIDE,
    OIL. POSITION_TYPE,
    OIL. AVAILABLE_QTY AVAILABLE_QUANTITY,
    OIL. GROSS_AMOUNT ORDER_AMT,
    OIL.NET_AMOUNT NET_AMOUNT,
    OIL. FEE_AMT FEE_AMOUNT,
    OIL. ACCRUED_INTEREST_AMT ACCRUED_INTEREST
    TABLE (: B6) OIL

    >
    I need to be able to generate a plan to explain it, I think I should use cast.

    SELECT TO_NUMBER (OIL. REBALANCE_ORDER_ID UNIQUE_ID),
    OIL. ORDER_QTY,
    OIL. ORDER_TYPE,
    OIL. ORDER_SIDE,
    OIL. POSITION_TYPE,
    OIL. AVAILABLE_QTY AVAILABLE_QUANTITY,
    OIL. GROSS_AMOUNT ORDER_AMT,
    OIL.NET_AMOUNT NET_AMOUNT,
    OIL. FEE_AMT FEE_AMOUNT,
    OIL. ACCRUED_INTEREST_AMT ACCRUED_INTEREST
    TABLE (: B6) OIL
    >
    You're right - mount the bind as the appropriate type. I have a SQL type named emp_table_type so that it works

    explain plan for select * from table(cast (:e1 as emp_table_type))
    

    The models involved are

    CREATE OR REPLACE TYPE SCOTT.emp_scalar_type as object
      (EMPNO NUMBER(4) ,
       ENAME VARCHAR2(10),
       JOB VARCHAR2(9),
       MGR NUMBER(4),
       HIREDATE DATE,
       SAL NUMBER(7, 2),
       COMM NUMBER(7, 2),
       DEPTNO NUMBER(2)
      )
    /
    
    CREATE OR REPLACE TYPE SCOTT.emp_table_type as table of emp_scalar_type
    /
    
  • How to create a matrix with variables

    I have 12 double variables (and not a table) and I wanted to put them all in a 4 x 3 matrix. I tried to use the matrix to build, but I didn't know how I would define which variable would be in every position of the matrix.

    Hi humberto,

    I thought that this would be explained in the tutorials beginning for LabVIEW, offered free of charge on the website of OR:

    Pretty easy, huh!

    Please go through these tutorials. Study the screws coming with LabVIEW example.

    It will help you learn LabVIEW!

  • How to call the property with variable

    Basically, I want to fill a table with data

    photoArray [count] = varLoader.data.nombre;

    the problem is that 'number' is supposed to be a variable is inside a loop and I "number ="peak"+ count;" before him, but it does not work, how do I call?

    table rating to coerce strings to objects:

    photoArray [count] = varLoader.data [number];

    or

    photoArray [count] = varLoader.data ["peak" + count];

  • How to build executable labview with all dependencies and libraries contained in .exe

    Hello

    I developed an application that uses several external libraries: JKI JSON string, Datagrid, etc... Under the build properties destinations, I select Main.exe. Under source code file settings, I have everything marked 'Set destinations for all content items' = Main.exe, 'Set destinations for packaged and shared libraries' = Main.exe.

    However, when the build is finished, I still find that JKI libraries are still in separate folders. There are literally dozens of JKI files, each of them contains 1 or 2 screws in addition, the same for the equipment operators.

    What I missed and how do I fix?

    Thank you!

    What LV version do you use?

    Make sure that you have not accidentally checked the box 'use LabVIEW 8.x file layout' in your build script.

    Norbert

  • How to build a square with a slope (talud-respons)

    Hello

    I want to generate a signal (square with a slope) you can see what I mean in the picture.

    With:

    period is: 0.2 s

    rising edge: 0.04 s

    falling edge: 0.04 s

    I can't find how can I do such a signal with the signal generator, how do I do such a signal with modules available in DASYLab?

    I hope someone can answer question

    Thank you

    If you do not Pro, you may be able to use the module generator with a triangle wave and then use the scale to cut the upper part, to make it more like a trapezoid.

    A wave of Triangle of 5 Hz with an amplitude of 5, limited to +-2, will do.

  • How to build a rocket with a transparent background

    So I recently built a black stray light on bottom of a solid layer. There a lot of any apparent layers and pick whipped to the lens flare layer. It pulses, opacities and changes positions, she does all kinds of really cool stuff. I have a major problem, it is locked in the composition strong creation that it is a rectangular shape when they are imported into any composition. He draws up his ugly face when you try to use it by the edge top and bottom of the flare had fallen from top and bottom horizontal line of the rectangle. «I can't size the flare itself inside the composition, when you try to reduce the size of the rectangular shape of the solid is what changes.»

    I changed the blending mode to SCREEN and ADD. I tried out of key with the key light that both were adequate.

    Demand for this torch should be considerably smaller for animate around the edge of another animated object. Where the need for the flare to be as independent as a key on a blue screen that can be added to any composition.

    I searched the tutorials of AE and nothing that comes close tutorial building a rocket in AE or solve the problem I found.

    Adobe forums and creative cow forums with people trying to help him with this problem, but every question about it remains all the way back for 2010, although there are a ton of entry.

    I'm more than willing to do it again if anyone knows a good tutorial to make a rocket with a transparent background.

    The tutorial I used was amazing, and it seems not that there was a problem with this problem in his tutorial.

    If you know FREE plugins that work with AE 2015 for flares or Unmults, I am open to trying this.

    I followed the directions of Adobes to download knoll 3d flare plugin and should not be, I received the error at the opening. I also tried to download unmult-64 bit of mounds and could not successfully installed.

    Any thoughts would be greatly appreciated.

    Thank you

    I'm guessing that you're fairly new in After Effects for keeps is pretty simple.  As learn you more you will find all kinds of complexities to make things easier and better to work with.  Take tips from Rick above and use part of the resources to begin.

    In the picture above, slide A and B are which I assume that you are doing right now.  Solid Lens Flare applied was related to another layer, making the solid with passage of the torch in synchronization with the layer (in my example, a small solid yellow.)  The problem is that the rocket falls on solid boundaries, then at the edge of the round is cut when the solid is not filling the frame.

    In the example C and D, I used a sample single whip expression to bind the Flare Center of the plugin setting flared to the position of the solid yellow.  Doing it this way has two advantages: solid never moves, so the flare gets cut ever on the edges; and the rounded looks more like a real life lens flare, because the different elements of the flare shift and change depending on the position of the light source, defined by the center of Flare.

    I posted a project file with these two examples and a simple 3D so version.  The plugin after effects Lens Flare standard is very simple, without a scale parameter, so it does not really too well in 3D.  There are a number of advanced plugins Lens Flare to third, the most common being the video Copilot optical Lens Flare, but these come at a cost, of course.

  • How to build the javafx with maven project

    Hi I have a simple example where I want to get a screen of javafx. I want to build using maven... I have the following code, does anyone have any ideas how to get this configured?

    App.Java - contains my main class and run the javafx code

    Import javafx.application.Application;
    Import javafx.scene.Scene;
    Import javafx.stage.Stage;

    /**
    * Hello World!
    *
    */
    public class App
    {
    Public Shared Sub main (String [] args)
    {
    System.out.println ("Hello World!");
    Application.Launch (ApplicationToLaunchJavaFX.class, null);
    }
    }

    ApplicationToLaunchJavaFX - the stage to display (javafx code)

    SerializableAttribute public class ApplicationToLaunchJavaFX extends Application
    {

    @Override
    public void start (steps) riser Exception {}
    stage.setTitle ("Helllllllooooo");
    internship. Show();
    }

    }

    POM. XML

    < project xmlns = "http://maven.apache.org/POM/4.0.0" xmlns: xsi = "http://www.w3.org/2001/XMLSchema-instance".
    xsi: schemaLocation = "http://maven.apache.org/POM/4.0.0 http://maven.apache.org/xsd/maven-4.0.0.xsd" >
    < > 4.0.0 modelVersion < / modelVersion >

    < groupId > com A < / groupId >
    mavenproject1hellowworld < artifactId > < / artifactId >
    < version > 1.0 - SNAPSHOT < / version >
    jar of < package > < / packaging >

    < name > mavenproject1hellowworld < / name >
    < url > http://maven.apache.org < URL >

    Properties of <>
    < project.build.sourceEncoding > < /project.build.sourceEncoding > UTF-8
    < / properties >

    < dependency >
    < dependency >
    JUnit < groupId > < / groupId >
    JUnit < artifactId > < / artifactId >
    < version > 3.8.1 < / version >
    < range > test < / scope >
    < / dependence >

    < dependency >
    com.Oracle < groupId > < / groupId >
    JavaFX < artifactId > < / artifactId >
    < version > 2.0 < / version >
    < scope > system < / scope >
    < systemPath > C:\Program Files\Oracle\JavaFX 2.0 SDK/rt/lib/jfxrt.jar < / systemPath >
    < / dependence >

    < / dependencies >
    < / project >

    This pom has managed to create a click to run jar for me.
    http://code.Google.com/p/Willow-browser/source/browse/Pom.XML

  • How to build a JTree with nodes multi-line Windows L and am FJt

    Although I already found 2 ways to build nodes multi-line JTree but both methods work very well in Java by default appearance and when I change my windows look and feel then it fails. I can't understand what is the problem. The two ways by which I build multi line nodes are:

    First: Using html in nodes
    as the DOSB linea < br > < html > < / html >

    Secondly: By implementing TreeRenderer and change it accordingly, such a class is given below
    class ModifiedTreeCellRenderer extends JPanel implements TreeCellRenderer {
        protected JLabel icon;
        protected TreeTextArea text;
        
        public ModifiedTreeCellRenderer() {
            setLayout(new BoxLayout(this, BoxLayout.X_AXIS));
            icon = new JLabel() {
                @Override
                public void setBackground(Color color) {
                    if (color instanceof ColorUIResource)
                    color = null;
                    super.setBackground(color);
                }
            };
            add(icon);
            add(Box.createHorizontalStrut(4));
            add(text = new TreeTextArea());
        }
        
        @Override
        public Component getTreeCellRendererComponent(JTree tree, Object value, boolean isSelected, boolean expanded, boolean leaf, int row, boolean hasFocus) {
            String stringValue = tree.convertValueToText(value, isSelected, expanded, leaf, row, hasFocus);
            setEnabled(tree.isEnabled());
            text.setText(stringValue);
            text.setSelect(isSelected);
            text.setFocus(hasFocus);
            if (leaf) {
                icon.setIcon(UIManager.getIcon("Tree.leafIcon"));
            } else if (expanded) {
                icon.setIcon(UIManager.getIcon("Tree.openIcon"));
            } else {
                icon.setIcon(UIManager.getIcon("Tree.closedIcon"));
            }
            return this;
        }
    
        @Override
        public Dimension getPreferredSize() {
            Dimension iconD = icon.getPreferredSize();
            Dimension textD = text.getPreferredSize();
            int height = iconD.height < textD.height ? textD.height : iconD.height;
            return new Dimension(iconD.width + textD.width, height);
        }
    
        @Override
        public void setBackground(Color color) {
            if (color instanceof ColorUIResource)
                color = null;
            super.setBackground(color);
        }
    
        class TreeTextArea extends JTextArea {
            Dimension preferredSize;
            
            TreeTextArea() {
                setLineWrap(true);
                setWrapStyleWord(true);
                setOpaque(true);
            }
    
            @Override
            public void setBackground(Color color) {
                if (color instanceof ColorUIResource)
                color = null;
                super.setBackground(color);
            }
    
            @Override
            public void setPreferredSize(Dimension d) {
                if (d != null) {
                preferredSize = d;
                }
            }
    
            @Override
            public Dimension getPreferredSize() {
                return preferredSize;
            }
    
            @Override
            public void setText(String str) {
                FontMetrics fm = getToolkit().getFontMetrics(getFont());
                BufferedReader br = new BufferedReader(new StringReader(str));
                String line;
                int maxWidth = 0, lines = 0;
                try {
                    while ((line = br.readLine()) != null) {
                        int width = SwingUtilities.computeStringWidth(fm, line);
                        if (maxWidth < width) {
                            maxWidth = width;
                        }
                        lines++;
                    }
                } catch (IOException ex) {
                    System.out.println(ex);
                }
                lines = (lines < 1) ? 1 : lines;
                int height = fm.getHeight() * lines;
                setPreferredSize(new Dimension(maxWidth + 6, height));
                super.setText(str);
            }
    
            void setSelect(boolean isSelected) {
                Color bColor;
                if (isSelected) {
                    bColor = UIManager.getColor("Tree.selectionBackground");
                } else {
                    bColor = UIManager.getColor("Tree.textBackground");
                }
                super.setBackground(bColor);
            }
    
            void setFocus(boolean hasFocus) {
                if (hasFocus) {
                    Color lineColor = UIManager.getColor("Tree.selectionBorderColor");
                    setBorder(BorderFactory.createLineBorder(lineColor));
                } else {
                    setBorder(BorderFactory.createEmptyBorder(1, 1, 1, 1));
                }
            }
        }
    }
       
    but the two methods in the event of failure in a Windows look and feel, can anyone help with this?

    Published by: user8978073 on April 30, 2011 10:24

    Published by: user8978073 on April 30, 2011 10:25

    Can't check right now, but - afair, windowsLAF sets the rowHeight to a fixed value (16 or 18 or something like that). Consult the setRowHeight and make sure that there<= 0="" to="" indicate="" that="" it="" should="" be="">

  • How to build JSR181 WebService with eclipse pack / why AXIS?

    Hi all

    I am trying to build a webservice annotation based by Eclipse (my client wants to use Eclipse 3.4 or 3.3) which is actually supposed to work on 9.2 and I am confused by the following questions:

    1. What is the equivalent of 'create WebLogic Web service' workshop in pack eclipse? any wizzard as in the workshop that creates a class annotated?
    2. If it is gone, it will support in a future version?
    3. when I try to start with a class of java without annotations, I find myself with an error message, but what confuses me
    more is, the choice between the AXIS and AXIS2 for WLS. I thought that WLS is not based on the AXIS and 10 WLS is based on the
    Pile of Sun Metro JAX - WS and JAX - RPC before program.

    (the error message I see is:)
    Cannot find the configuration file. Creating new configuration file servlet engine: /WEB-INF/server-config.wsdd)

    4. in fact, I was very happy if I could install the workshop WLS plugins in Eclipse 3.4, but it's not possible, no?

    I appreciate your comments.
    I also appreciate suggestions for what is the more stable tool to develop Web services for WLS9 (and 10 later).
    Workshop 9 or 10, Studio comes with ALSB, pack Eclipse workspace.

    see you soon,

    Barossa

    Published by: user8021852 on December 31, 2008 01:05

    WLS web services support will be added to the next version of EPCO, which will be delivered in the first quarter of 2009.

    WLS web service stack does not rely on the axis. Base Eclipse tooling for Axis web services account. You should be able to run web services based on the axis on WLS, if you wish. The axis runtime libraries must be provided with your application in this case.

    4. in fact, I was very happy if I could install the workshop WLS plugins in Eclipse 3.4, but it's not possible, no?

    Is not possible.

    I also appreciate suggestions for what is the more stable tool to develop Web services for WLS9 (and 10 later).
    Workshop 9 or 10, Studio comes with ALSB, pack Eclipse workspace.

    I would recommend Workshop 10.3, which is based on Eclipse 3.3 and has the support of WLS 9.2 and 10.0.

  • How to make a loop with variable values depending on where you are in the loop

    Hello

    I need loops / nested loops that choose different figures depending on where you are in the loop.

    The entire function must operate at times 'ml '. 'ml' is a dynamic figure.

    Loop 1 = while the loop is the first 12 iterations, "exconemp" must be equal to 100. 13-24 iterations, 'exconemp' to 102.5 equal, for 25-36 TI 105.06, 37-48, it will be 107.69. This must change each 12th iteration until he reached 'ml '. The calculation takes the value of the previous 'exconemp' and then that multiply by 0.025.

    Loop 2 = while the loop is in 120 first iterations, 'abc' should be equal to 0.015 and additional iterations should use 0.01. It should also work in a way to know if 'ml' is greater or less than 120 and work accordingly.

    My main problem is - this - how can I get loops to go like this:

    While the iteration is < 12, to do this, THEN take the final figure (12th iteration) and begin the 13-24, make this SO etc etc.

    How to produce a THEN statement? I can get the code to pick up the final values, but does not change along the way.

    I think I might better create an array for loop 1, but I'm not entirely convinced of that. Also, I think it would be better/more net if I can get "month total 1 ' and ' month 2 total ' in loops, but do not know how to do this.

    The values I need to produce (only 36 first shown):

    1-12 = 125.55, 251,65, 378.31, 505.52, 633.29, 761.63, 890.53, 1019.99, 1150.03, 1280.63, 1411.81, 1543.57
    13-24 = 1679.05, 1815.12, 1951.79, 2089.06, 2226.93, 2365.41, 2504.50, 2644.20, 2784.52, 2925.45, 3067.00, 3209.18
    25-36 = 3355.19, 3501.85, 3649.15, 3797.11, 3945.71, 4094.96, 4244.87, 4395.44, 4546.68, 4698.57, 4851.14, 5004.38

    var ml = 240 / / dynamic figure, multiple of 12 up to 780
    var exconemp;
    var exconem = 100;
    var inf = 0.025;
    Tree var;
    var tec;
    power of the var;
    var fvis;
    var abc;
    var fvee;
    MVT var;
    function myfunction() {}

    Loop 1

    While (ml < = 12) {}
    exconemp = exconem;
    // }
    so that {(ml > 12)
    exconemp = exconem * inf;
    //}

    end loop 1

    trace ("exconemp =", exconemp); employee contribution

    tree = exconemp /(1-0.2)-exconemp;
    TEC = exconemp + tree;
    trace ('tree', tree);
    trace ("tec", tec);
    power = Math.pow (1 + 0.07, 1/12);

    Loop 2

    While (ml < = 120) {}
    ABC = 0.015;
    //}
    then {}
    ABC = 0.01;
    //}

    end loop 2

    fvis = power *(1-abc/12);
    trace ("fvis =", fvis);
    FVEE = tec * fvis;
    trace ("fvee =", fvee); month 1 total
    MVT = (CET + fvee) * fvis;
    trace ("MVT =", MVT); month 2 total
    //

    for (var i: Number = 0; i < ml; i ++)
    {
    MVT = (CET + MVT) * fvis;
    trace ("tfvloop =", MVT);
    }
    }

    I hope that I've explained this well enough.

    Thanks in advance.

    I think that will do it even if I don't quite get the numbers you posted.

    Stop();

    var ml = 48; figure dynamic, multiple of 12 up to 780
    var exconemp;
    var exconem = 100;
    var inf = 0.025;
    Tree var;
    var tec;
    power of the var;
    var fvis;
    var abc = 0.15;
    var fvee;
    MVT var;

    MyFunction();

    function myfunction()
    {
    exconemp = exconem;

    for (var index: uint = 1; index)<= ml;="">
    {
    trace(index + "--------------------------------");
               
    tree = exconemp /(1-0.2)-exconemp;
    TEC = exconemp + tree;
    power = Math.pow (1 + 0.07, 1/12);
    fvis = power *(1-abc/12);
    FVEE = tec * fvis;
                       
    if(index == 1)
    {
    trace ("month 1 total =", fvee);
    }
    another if (index == 2)
    {
    MVT = (CET + fvee) * fvis;
    trace ("month 2 total =", MVT); month 2 total
    }
    on the other
    {
    MVT = (CET + MVT) * fvis; now that we're here the MVT auto perpetuates on himself
    trace ("months" + index + "total =", MVT); month total n
    }
                       
               
    If (index %12 == 0)
    {
    exconemp = exconemp *(1+inf);
    trace ("changed to exconemp to:" + exconemp);
    }
               
    If (index % 120 == 0)
    {
    ABC =. 01;
    trace ("changed abc to:" + abc);
    }
               
    }
    }

Maybe you are looking for