Math and science equations in QML

I would like to create an app for Blackberry 10 requiring the display of equations. MathML or LaTeX currently supported in QML or y at - it another way to display mathematical equations? I don't like to display equations using JPEG/GIF/PNG images

If you look at WebView documentation you can see that you can load it locally

WebView {
    id: webViewUrl
    url: "local:///assets/test.html"
}

Tags: BlackBerry Developers

Similar Questions

  • How to stop rounding R2 value numbers and graph equation?

    After inputing the values in a table, and make a scatterplot graph-, I click on 'series' adds a linear trendline and check the boxes for 'show R²' and 'equation '. The two appear on my chart, but they always seem to be rounded. My equation is always "y = x" and my ratio is always 1. Even if my partner will get the same results in Excel and get an equation like ' y = 0.9888 x + 0.00044. Is there a way to fix this? I'm doing something wrong?

    Thank you!

    Here is an example I did.  Perhaps you could share your screenshot of dan for the chart:

  • Flash Math and angles

    I don't know enough about math flash functions it's just that I don't know the formula of working on the angles in a triangle, if I have three lengths in a triangle with a right angle. I have the hypotenuse, the vertical and the base, I want to work on the angle between the base and the hypotenuse, I created a little tool that displays an arrow of dimension between two points and I need to turn it acurately to get the form in joinign point to point. My video clip of dimension is called lineBox, and its alignment is to the left most part of the line (so basically nothing has a negative x value so it can be placed in either a rotated adjustment and scale to the point y and x)

    Thanks in advance!

    for the angle in degrees try
    degrees = Math.atan2 (verticallength, trianglebaselength) * 180/Math.PI

    Search Math.atan2!

  • Time date math and daylight

    I try to get the number of seconds between 1 March 2010 and 31 March 2010 in Oracle. I'm in the Eastern time in the United States. Everything I try just comes back with 30 days * 86400 seconds per day = 2592000. 1 hour was lost when we moved to summer time, so the correct answer is 2588400.

    How to create a function in Oracle (10 g 2) which will give me the number of seconds between 2 dates, or stamps that is aware of the loss of an hour in March and gain an hour in November?

    As was already suggested by Oracle automatically takes day light saving time into account.
    For example:

    with d as
    (
    select TIMESTAMP '2010-03-31 00:00:00 US/Pacific'  edt,
    TIMESTAMP '2010-03-01 00:00:00 US/Pacific' sdt,
    TIMESTAMP '2010-03-31 00:00:00'  edt1,
    TIMESTAMP '2010-03-01 00:00:00' sdt1
    from dual
    )
    select (edt - sdt) * 24 * 3600,(edt1 - sdt1) * 24 * 3600
    from d
    ;
    (EDT-SDT)*24*3600             (EDT1-SDT1)*24*3600
    +2588400 00:00:00.000000     +2592000 00:00:00.000000
    

    TRN
    Sudhakar B.

    Edited by: Sudhakar_B may 25, 2010 15:06

  • Tie on the row

    Hello

    Below is the structure of the table:
    _STUD_
    STUD_ID
    MATH
    MATH_RANK
    SCIENCE
    SCIENCE_RANK
    ENGLISH
    FIN_RANK
    Here's something I'm trying to accomplish:
    The MATH_RANK and SCIENCE_RANK columns contains the dense rank on MATH and SCIENCE, respectively. And FIN_RANK would be calculated as (0.5 * MATH_RANK) + (0.5 * SCIENCE_RANK).

    Now, if there is a link between a set of students, I need to use ENGLISH in the tie.


    This is something that I came with:
    (1) add an additional column (INCR) on the table STUD
    (2) calculate FIN_RANK initially as (0.5 * MATH_RANK) + (0.5 * SCIENCE_RANK).
    (3) move through the records that are linked with others and fill levels
    (4) add INCR to FIN_RANK.

    Example code:
    BEGIN
       FOR cur1 IN (SELECT   *
                        FROM stud s1
                       WHERE EXISTS (
                                SELECT 1
                                  FROM stud s2
                                 WHERE s1.fin_rank = s2.fin_rank
                                   AND s1.stud_id <> s2.stud_id)
                    ORDER BY s1.fin_rank, s1.english DESC)
       LOOP
          IF vprevrank IS NULL
          THEN
             vprevrank := 0;
          END IF;
    
          SELECT (incr - 1)
            INTO vincr
            FROM (SELECT DENSE_RANK () OVER (ORDER BY DECODE (b.english,
                                                              NULL, 0,
                                                              b.english
                                                             ) DESC) incr,
                         b.stud_id userid
                    FROM stud b
                   WHERE cur1.fin_rank = b.fin_rank)
           WHERE userid = cur1.stud_id;
    
          UPDATE stud a
             SET incr = incr + vincr
           WHERE a.stud_id = cur1.stud_id;
    
          IF vincr > 0 AND vincr > vprevrank
          THEN
             UPDATE stud
                SET incr = incr + 1
              WHERE fin_rank > cur1.fin_rank;
          END IF;
    
          vprevrank := vincr;
       END LOOP;
    
       UPDATE stud
          SET fin_rank = fin_rank + incr;
    END;
    Could you think of an alternative (perhaps with the collection or something)?

    Thank you
    CJM

    Hello

    It seems strange to me to calculate the fin_rank of math_rank and science_rank instead of mathematics and science.

    Having no data to play with I tried this:

    SQL> with s as (
      2  select 1 stud_id, 15 math, 10 science, 12 english from dual
      3  union all select 2, 10, 15, 18 from dual
      4  union all select 3, 17, 18, 13 from dual
      5  union all select 4, 12, 11, 17 from dual
      6  union all select 5, 18, 17, 14 from dual
      7  union all select 6, 14, 10, 14 from dual
      8  union all select 7, 11, 13, 11 from dual
      9  union all select 8, 13, 13, 12 from dual
     10  union all select 9, 10, 14, 14 from dual
     11  union all select 10, 19, 12, 15 from dual
     12  )
     13  select
     14  stud_id,
     15  math,
     16  dense_rank() over (order by math desc) math_rank,
     17  science,
     18  dense_rank() over (order by science desc) science_rank,
     19  dense_rank() over (order by math+science desc, english desc nulls last) fin_rank
     20  from s ;
    
       STUD_ID       MATH  MATH_RANK    SCIENCE SCIENCE_RANK   FIN_RANK
    ---------- ---------- ---------- ---------- ------------ ----------
            10         19          1         12            6          3
             5         18          2         17            2          1
             3         17          3         18            1          2
             1         15          4         10            8          6
             6         14          5         10            8          7
             8         13          6         13            5          4
             4         12          7         11            7          9
             7         11          8         13            5          8
             9         10          9         14            4          7
             2         10          9         15            3          5
    
    10 rows selected.
    

    Student5 is finally classified #1 before student3 because he's better in English.

    Published by: Nicosa 27 July 2010 16:09
    --> has added nulls last to properly manage students with no English. (assumed, he is not a student with null for the science or math)

  • Question on the development of Cascades using C++ and QML

    Hi all, I have been experimenting and creating waterfalls applications for more than a month.

    I used c ++ (where I am a newbie c ++ too) all the time to create applications and ignore qml.

    I'm at the point where I need to create the list in my application and it uses the MVC architecture, I'm not familiar with.

    So my question is:

    Lets say I have a Page, a container that are coded in C++, can I create a list in qml and then "call" and add to my C++ container?

    If the answer is Yes, is there anyone kind enough to provide a bit of code sample on that?

    Thank you

    Your words are a bit confusing.

    If you add a page to a listitem then no, not possible.

    If you want to add a list created in QML and add it to your C++ container then Yes.

    If it's a static object qml you can load the page in code c++ at compile time.

    If you want to dynamically add a ListView QML to a container during execution, then you will need to pass the object by a Q_PROPERTY or a Q_INVOKABLE one.

    A simpler method is to set the name of your ListView object and then going to a function in your C++ that it finds and adds.

    QML

    ListView {
       id: lv
       objectName: "bob"   // Dynamically change if you wish
    
       //  ... ListView stuff
    }
    
    Button {
        text: "Click to add ListView"
        onClicked: {
            _app.addList(lv.objectName)
        }
    }
    

    C++

    void addList(QString name) {
       ListView* lv = (ListView *)mPage->findChild(name);
       mContainer->add(lv);
    }
    

    Not in front of my computer (which is encoded in memory), so maybe not quite accurate, but something like that.

  • Font color CP7 Math Magic change to work on dark backgrounds?

    Hello

    I created some equatoins in Math Magic via the new captivate 7. I would like to use the Blackboard for this project, but can't seem to find the right place to change the font of the equation to the white color. What I'm missing here? I tried to play with the color of the window, but when I try to make things look white, they become truly transparent instead of white. I can change for the other colors, but not white. Help please...

    Lori

    Hello

    Can you try to create a custom color white in 'Magic Math' and see that it solves the problem or not

    Follow these steps to create custom colors

    1 double-click on the equation of Captivate to open Math Magic.

    2. click on the menu item window > color window

    3. click on the 'New' button, enter the custom name

    4. Enter the R, G and B values as 255,255,254

    5. press OK.

    6. Select the entire equation on the stage of Math Magic, choose a custom color.

    7. save the equation

    Thank you

    VERALINE Sukumaran.

  • Enter a number in a cell empty and multiplied by the value in another cell to return a total value

    I would like a number in an empty cell that will be then multiplied by a constant number of another cell, but the result should be returned in the original empty cell.  For example, I have a cell (B3), which has a constant number (12).  In B4, I take any number (for this example, we will use 3) which will be then multiplied by the number in B3.  The result: 36 (12 X 3) will be shown in B4.  If I enter the number 5 it returns a value of 60 (12 x 5).  I do not have the numbers in parentheses, they are there as to understand my problem.


    Number using 3.6.2

    Thanks in advance!

    DaveTheDreaded

    You can't have a manually entered value and an equation in the same cell. So what you're asking can be in any spreadsheet. Generally, we put the new value in the next column and work from there.

    If you want to make a second sheet, you may have a spreadsheet, then a print sheet / display. Where you enter your values in the journal entry or table and the results show on the other hand you like.

    the last alternative is a script to move data around you, but it's really overkill.

    Jason

  • Simultaneous equations of the HP 50 g

    I would like to solve 2 simultaneous equations:

    x ^ 3 + 3 x ^ 2 + 2 x + k = 0

    3 x ^ 2 + 6 x + 2 = 0

    I walked into an array and creates an array containing k just because that is the variable, I would that the values of. However, when I used the symbolic Solver I {} as the answer. Is there another way I should solve this?

    There are 2 variables and 2 equations.

    the two must be resolved.

    create the table using two equations...

    equations entered in table form will look like the following:

    now enter the 2 variables to solve for a column vector:

    Now press

    LEFT SHIFT

    7 @S.SLV

    @SOLVE F6 function key

    result:

    See also the video below...

    jump in front of the start to the point where the equations are created and entered into the 50 G

    http://www.YouTube.com/watch?v=z802L29JyQE

    EDIT EDIT: Make sure that the 50G is set to EXACT

  • two-way math

    It of maybe a stupid question... but is it possible to connect two controls so that they affect to another?

    More precisely:

    I control A and B and want to make the $ 10. Order change A will affect the display of B in real time and vice versa.

    Use a structure of the event to the keyboard on the change in the value of a.  In it, you do the math and update B with a local variable.  Do the same with the change of the value of B to update A.

  • The Devs creating their active Frame for a separate QML file covers? I'm stuck

    Bit in trouble, I do my best to bring my Apps support 10.2.1 10.2.2 I practically everything by working the * beep * covers Active, I did do a check and create the file QML according to less than 10.3 or greater

     ComponentDefinition {
                id: creator;
                source: ""
                function createQMLObject(sourceUrl){source=sourceUrl; creator.createObject()}
            }
    

    Feel free to use that btw ^.

    if(olderFirmware===true)  Application.setCover(creator.createQMLObject("CoverOlderFirmware.qml"))
            else{Application.setCover(creator.createQMLObject("Cover.qml"))}
    

    Now for some reason, they do not work, they seem to be created, but do not want to show, normally I would create it from my main.qml but the passport and its lid Multi forced me to separate the covers in their own QML files

    Begins like (not included UI code)

    import bb.cascades 1.2
    
        SceneCover {
            id: large
    
            content: Container {
                background: Color.create("#000000")
                layout: DockLayout {}
    }
    }
    

    Place in a container gives me a weird error on not able to create a list in an object, probably referring to MultiCover and SceneCover as a child of the container.

    Any suggestions?

    I use active selector to do this, find in this application example:
    https://github.com/RodgerLeblanc/AssetSelector

    This method can support 10.2.1 users and below, don't forget to add the lines of c ++ this blog:
    https://bb10code.WordPress.com/2014/12/10/active-frame-made-easy/

    Check your email, I also sent you something on your last post on the forum.

  • How to get a handle to the window to screen using just group id and the id of the window?

    Hello

    We are trying to develop a video application, and we use ForeignWindowControl to display the video on the screen.

    We have those ForeignWindowControl declared and defined in a QML file that appears as needed.

    Using the CameraAPI, we are able to get local video displayed correctly on the local video ForiegnWindowControl. For this we have just the window group id and the id of the window api camera and it automatically configures the window newly created by the camera to the position API and the size defined in the QML file.

    However, this is isn't the case with the video remotely. Since there is no method/function similar to the createViewFinder of the camera api, we need to create a new window of ourselves that goes under the Group shared by the ForeignWindowControl remotely, using screen_create_window_type and set all the required parameters.

    To view the video, hard-code manually the position and size of the newly created window so that it corresponds to the position and the size of ForeignWindowControl remote in QML file and is displayed correctly.

    My question is how to find the ForeignWindowControl using just the group id and the id of the window? the way in which the cameraAPi done in-house?

    Any help would be appreciated.

    Thank you.

    There are 3 ways to associate a window with a ForeignWindowControl.

    1 tell the ForeignWindowControl to expect a window with a given windowId.  Then after that libscreen allows you to create your window with the same windowId, use screen_join_window_group() to adhere to the same group that uses the FWC.  The FWC should automatically capture this event and associate the window itself.  This is how the camera it.

    2. call the bindToWindow() of the ForeignWindowControl method to associate the FWC a particular windowId/groupId.  Similar to the #1, but doesn't seem more useful if you create the FWC after the window of the screen has been created.

    3. call the setWindowHandle() of the ForeignWindowControl method.  Similar to the #2, but instead of using windowId/groupId, you spend just the actual handle.

    See the FWC docs:

    https://developer.BlackBerry.com/Cascades/reference/bb__cascades__foreignwindowcontrol.html

    If you have created the window, you can use one of the 3 approaches.  If the window has been created in a different process (eg. mm-engine rendering, or photo-service device), then generally #1 is the approach you would use.

    See you soon,.

    Sean

  • Math

    Hello

    Someone knows the asin function in the api? I have to writesomething like:

    arcsin(y/x-y)

    but the classes Math and Fixed32 that support?

    Thank you

    Have you looked at MathUtilities?

  • JS function as a type of page in QML property

    Hi all

    I'm trying to create useful js 'class' for my blackberry application and save here some information about qml object here is the example of such file js:

    /* * my js */
    
    function Utils(devInfo){ this.devInfo = devInfo; this.text = "test text";
    
     this.getInfo = function(){ return this.text; };}
    

    I want to group some utils functions here and use this js in qml file object, but I don't want to create "Utils" every time, I would like to have a single instance of page qml. I tried to use properties:

    import bb.cascades 1.3
    import com.example.bb10_samples_states 1.0
    import "myscripts.js" as Scripts
    
    Page {
        property variant utils : new Scripts.Utils(deviceInfo)
    
        Container {
            Label {
                id: myLabel
                text: "Hello World"
            }
    
            onTouch: {
                var newLabeltext = utils.getInfo(); // freezing
                myLabel.text = newLabeltext;
            }
        }
    
        attachedObjects: [
            DevInfo{
                id: deviceInfo
            }
        ]
    }
    

    * DevInfo is registered object c ++

    I got the following in the notecard event error message:

    "asset:///main.qml:15: TypeError: result of expression 'utils.getInfo' [[object Object]] is not a function."

    If I do not use the property and only with variable work, everything is ok. The following code works correctly:

    import bb.cascades 1.3
    import com.example.bb10_samples_states 1.0
    import "myscripts.js" as Scripts
    
    Page {
        //property variant utils : new Scripts.Utils(deviceInfo)
    
        Container {
            Label {
                id: myLabel
                text: "Hello World"
            }
    
            onTouch: {
                var utils = new Scripts.Utils(deviceInfo);
    
                var newLabeltext = utils.getInfo();
                myLabel.text = newLabeltext;
            }
        }
    
        attachedObjects: [
            DevInfo{
                id: deviceInfo
            }
        ]
    }
    

    In general, I don't know where I can store object js in qml page to access my functions utils without need to create each time. Any ideas?

    I think I found the answer

    According to this link, there is no global js object and every instance of component QML has own unique copy resources imported from JS:

    ...

    Code-Behind implementation resources

    Most of the JavaScript files imported into a document QML are implementations with State of the QML importation document. In these cases, each instance of the QML object type defined in the document requires a separate copy of the JavaScript and State objects to behave properly.

    The default behavior when importing the JavaScript files must provide a unique and isolated copy for each instance of the QML component. If this JavaScript file any resources or modules with a statement .import, its code will be executed in the same scope as the instance of the QML component and therefore can access and manipulate objects and properties declared in the QML component. Otherwise, it will have its own unique scope, and the objects and properties of the QML component should be passed to the JavaScript file as parameters functions if they are required.

    ...

    http://Qt-project.org/doc/Qt-5/qtqml-JavaScript-resources.html

    So it seems there is no need to implement the model of sigleton or store JS resources in the QML document. I changed my code as follows:

    /**
     * js
     */
    var utils = {
      devInfo : null
    };
    
    function init(deviceInfo){
      utils.devInfo = deviceInfo;
    };
    
    function getText(){
      return utils.devInfo + " done.";
    };
    

    and qml:

    import bb.cascades 1.3
    import com.example.bb10_samples_states 1.0
    
    import "myscripts.js" as Scripts
    
    Page {
        Container {
            Label {
                id: myLabel
                text: "Hello World"
            }
    
            onCreationCompleted: {
                Scripts.init(deviceInfo);
            }
    
            onTouch: {
                myLabel.text = Scripts.getText("Tra-ta-ta");
            }
        }
    
        attachedObjects: [
            DevInfo{
                id: deviceInfo
            }
        ]
    }
    

    It works fine - I can store information in the variable 'utils' and work with qml js objects. Hope so, it will help someone

  • Reference ID of qml files

    I have 2 files qml. One containing a pane with tabs (tabbedMenu.qml) and the other (ContentContainer.qml) with a container with a label.

    I use ContentContainer.qml as a template for the pages of tabbedPane as follows:

    (ContentContainer.qml)
    Contains a label with the id headerLabel

    (tabbedMenu.qml)

    TabbedPane {}
    {Page}
    ID: connectTab
    paneProperties: {TabbedPaneProperties}
    Title: 'Tab '.
    }

    content: {ContentContainer}
    ID: connectContent
    {Label
    ID: testLabelID
    text: "text".
    }
    }
    }
    ...

    Is it possible to update the value of headerLabel to tabbedMenu.qml when a tab is changed?

    I thought about it. I just used a C++ class, it entered as property and class variables to the variables on the side QML.

    See https://bdsc.webapps.blackberry.com/cascades/documentation/ui/integrating_cpp_qml/index.html for an example

Maybe you are looking for

  • Satellite Pro L300 - PSLB9E - cannot turn off wifi except for by Win 7

    I installed Win7 64 bit with a custom installation (replacing 32-bit Vista). I have updated all drivers (to my knowledge) and BIOS to 2.1. The wifi is always enabled, any position of the switch on the front or the combination Fn + F8. I can unplug a

  • Appearance of Firefox 4 has not changed of 3.6.15

    I upgraded FF 3.6.15 to 4 ff. He said it is "up-to-date", but it's exactly the same (except for a lot of my addons don't work do not, which was to be expected). The tabs are in the same place, there is no new button to the menu bar, there is no new n

  • Several ATVS and HomeKit

    I have the homekit build zones in my house and 2 ATV4 and 1 ATV3. What TV will be used by the HomeKit accessories? All three ATVS are in the range of accessories. I will keep awake ATV? Or can set only one not not to go in mode 'sleep'? Which is bett

  • Reinstall Windows 7 on hard drive again with only the Win 7 Upgrade disc?

    So I have an e9180t which, like clockwork, freezes after about an hour or two after the boot.  I thought it might be the curse of bad mothers, with what they came, but I hope that it is something else so test everything I can.  I noticed that it does

  • Write to measure all data from data acquisition in a column of file messages?

    My program has a DAQ who reads six different channels. The channels are separated and sent to a script to measure the file. When I open it in excel data is in a single column. I want the time in a column with the data of each channel. Total of 7 colu