PARI/gp Xorter Fellow Posts: 93 Threads: 30 Joined: Aug 2016 04/17/2017, 09:48 AM Hi, again! I need your help in PARI/gp. I would like to substitute a value into x of sin(x): Code:subst(sin(x),x,1)But it returns with error. Why? Please, help me. Xorter Unizo Gottfried Ultimate Fellow Posts: 880 Threads: 129 Joined: Aug 2007 04/17/2017, 04:27 PM (04/17/2017, 09:48 AM)Xorter Wrote: Hi, again! I need your help in PARI/gp. I would like to substitute a value into x of sin(x): Code:subst(sin(x),x,1)But it returns with error. Why? Please, help me. Code:subst(Pol(sin(x)),x,1) should work. But why not simply do Code:sin(1) ? Gottfried Helms, Kassel Xorter Fellow Posts: 93 Threads: 30 Joined: Aug 2016 04/17/2017, 05:53 PM (This post was last modified: 04/17/2017, 05:54 PM by Xorter.) (04/17/2017, 04:27 PM)Gottfried Wrote: (04/17/2017, 09:48 AM)Xorter Wrote: Hi, again! I need your help in PARI/gp. I would like to substitute a value into x of sin(x): Code:subst(sin(x),x,1)But it returns with error. Why? Please, help me. Code:subst(Pol(sin(x)),x,1) should work. But why not simply do Code:sin(1) ? Oh, it was simplier than I thought. Thank you, my friend! Well, because I have found a new type of integration and derivation. These are iterated! And I needed substitution in a function in my gp. Really amazing. I am going to share my results on this forum as soon as possibly. (May be the key to determine what between addition and multiplication is.) Just wait a few days, please. Xorter Unizo Xorter Fellow Posts: 93 Threads: 30 Joined: Aug 2016 04/17/2017, 07:05 PM But somewhy it does not work with gamma function. Xorter Unizo sheldonison Long Time Fellow Posts: 684 Threads: 24 Joined: Oct 2008 04/18/2017, 05:37 AM (04/17/2017, 07:05 PM)Xorter Wrote: But somewhy it does not work with gamma function. sin(x+1) or gamma(x+1) - Sheldon Xorter Fellow Posts: 93 Threads: 30 Joined: Aug 2016 04/18/2017, 09:02 AM (04/18/2017, 05:37 AM)sheldonison Wrote: (04/17/2017, 07:05 PM)Xorter Wrote: But somewhy it does not work with gamma function. sin(x+1) or gamma(x+1) I have determined the graphs with sin functions, but now I would like to work with gamma, too. These methods are the generalizations of the integration and derivation... Xorter Unizo Xorter Fellow Posts: 93 Threads: 30 Joined: Aug 2016 11/20/2017, 08:21 PM Hi, again! Here is another problem. I would like to calculate this productum but without success: Code:subst(exp(1/x),x,1/1000)Why? Xorter Unizo Gottfried Ultimate Fellow Posts: 880 Threads: 129 Joined: Aug 2007 11/21/2017, 12:51 AM (11/20/2017, 08:21 PM)Xorter Wrote: Hi, again! Here is another problem. I would like to calculate this productum but without success: Code:subst(exp(1/x),x,1/1000)Why? The error message in my (old) Pari/GP-system is                           Quote:exp(1/'x)    *** exp: negative exponent in gexp. I don't think they have anything new implemented for this problem so far. Gottfried Helms, Kassel Xorter Fellow Posts: 93 Threads: 30 Joined: Aug 2016 11/21/2017, 01:31 PM I got the following error message:   ***   at top-level: subst(exp(1/x),x,1/1000)   ***                       ^------------------   *** exp: domain error in exp: valuation < 0 My question is that how can we solve this problem? Xorter Unizo Gottfried Ultimate Fellow Posts: 880 Threads: 129 Joined: Aug 2007 11/21/2017, 03:05 PM (11/21/2017, 01:31 PM)Xorter Wrote: I got the following error message:   ***   at top-level: subst(exp(1/x),x,1/1000)   ***                       ^------------------   *** exp: domain error in exp: valuation < 0 My question is that how can we solve this problem? Perhaps it is meaningful for you to replace 1/x by exp(-u) where u=log(x) ? At least this gives a power series (more precisiely a puisieux-series) Gottfried Helms, Kassel « Next Oldest | Next Newest »

 Possibly Related Threads… Thread Author Replies Views Last Post Brjuno number in Pari-GP Ember Edison 1 1,210 10/24/2021, 03:32 AM Last Post: Ember Edison Creating Hue Plots in Pari-GP JmsNxn 4 2,976 09/25/2021, 01:20 AM Last Post: JmsNxn Pari-TTY - update Gottfried 0 4,474 10/13/2007, 04:02 PM Last Post: Gottfried

Users browsing this thread: 1 Guest(s)