Substitude variables on a array of equations... « Next Oldest | Next Newest »

 ▼ regisxp Junior Member Posts: 1 Threads: 1 Joined: Jan 1970 04-18-2007, 02:29 PM Hi all! I have a function that retuns me a array with two equations... Something like this: [x^2+y X^2-2y] Is there any way that i can use to substitute X and Y by real numbers, like; x=2 and y=1 And get an array with the responses: [5 2] Thanks a lot!!! ▼ Vieira, Luiz C. (Brazil) Posting Freak Posts: 4,027 Threads: 172 Joined: Aug 2005 04-18-2007, 08:06 PM Hi; one of the simplest way would be creating the variables ´x´ and ´y´ then attributing them the values you want to. Consider this:```[x^2+y x^2-2y] [ENTER] 2 'x' [STO] 1 'y' [STO] [->NUM]``` Alternatively you can store the initial expression in a separate variable, say 'EQ1', with the following sequence: ```[x^2+y x^2-2y] 'EQ1' [STO] 2 'x' [STO] 1 'y' [STO] 'EQ1' [->NUM]```This way, you could attribute x and y other values, say 3 and 4, like this: ```3 'x' [STO] 4 'y' [STO] 'EQ1' [->NUM]``` There are other ways, for sure. This is one of them, though. Cheers. Luiz (Brazil) (PS: there may be errors, I have no calculator at hands, now...) Edited: 18 Apr 2007, 8:10 p.m.

 Possibly Related Threads... Thread Author Replies Views Last Post [HP Prime] Tips for Solving Differential Equations More Efficiently Chris Pem10 8 1,282 11-21-2013, 08:25 PM Last Post: Chris Pem10 HP: Dump the predefined variables! bluesun08 12 1,566 11-19-2013, 02:18 PM Last Post: bluesun08 HP Prime - local variables retain their initial type BruceH 4 883 11-10-2013, 12:42 PM Last Post: Michael de Estrada Shutdown with the Apps key and more than 10 variables in a program. Davi Ribeiro de Oliveira 10 1,684 11-05-2013, 01:26 PM Last Post: Han HP Prime: Number of external Variables Davi Ribeiro de Oliveira 0 440 11-01-2013, 08:10 PM Last Post: Davi Ribeiro de Oliveira HP Prime variables Davi Ribeiro de Oliveira 3 736 10-31-2013, 02:24 AM Last Post: cyrille de Brébisson HP Prime - deleting variables bluesun08 1 544 10-29-2013, 06:36 PM Last Post: Joe Horn HP Prime: CAS Variables - -How to save? Helge Gabert 2 665 10-27-2013, 11:26 PM Last Post: Helge Gabert HP Prime: How to use a large array in a program? HP Pioneer 2 586 10-27-2013, 03:15 AM Last Post: steindid HP Prime Solver Variables Issue Anibal Morones Ruelas 8 1,426 10-19-2013, 09:45 AM Last Post: Harold A Climer

Forum Jump: