cancel
Showing results for 
Search instead for 
Did you mean: 
dj2631
New member
5 2 0 0
Message 1 of 3
980
Flag Post

Solved!

Problems with Unapply command with Cas variables as arguments

HP Recommended
HP Prime

Hello, everyone.
I have some problems using the command unapply, let me explain you:
First, I create the variables fv and vv. Then, I use the unapply command with fv and vv as argument;
the problem is that the command unapply doesn't recognize the content in the variable vv as you can see in the image.
Is there a way to make it work the way it should be?(just like in the last line in the image).

I know I could use other commands like subst, however I prefer to use unapply and apply.
I hope you can help me, thanks.unapply errors.jpg

 

 

 

0 Kudos
Tags (1)
2 REPLIES 2
Jan_D
Level 6
305 297 32 76
Message 2 of 3
Flag Post
HP Recommended

 

This is the best I can do:

 

pic3.png

 

0 Kudos
Jan_D
Level 6
305 297 32 76
Message 3 of 3
Flag Post
HP Recommended

Maybe you like this solution more.

It is more complicated but uses vv.

 

pic5.png

 

Note that t is the addition of 3 strings, the first one being  

"unapply(fv,"

the second string is s,

and the third one is ")"

 

expr(t) converts the string to its content.

 

Also note that I used lowercase string and expr and not uppercase STRING and EXPR.

The display in uppercase is wrong here. 

Tags (1)
† The opinions expressed above are the personal opinions of the authors, not of HP. By using this site, you accept the Terms of Use and Rules of Participation