楼主: henryyhl
10389 5

SAS中如何求立方根 [推广有奖]

  • 67关注
  • 5粉丝

已卖:2份资源

副教授

56%

还不是VIP/贵宾

-

威望
0
论坛币
26 个
通用积分
17.7240
学术水平
18 点
热心指数
17 点
信用等级
11 点
经验
47974 点
帖子
504
精华
0
在线时间
1102 小时
注册时间
2011-11-4
最后登录
2025-6-21

楼主
henryyhl 发表于 2013-11-2 14:57:03 |AI写论文

+2 论坛币
k人 参与回答

经管之家送您一份

应届毕业生专属福利!

求职就业群
赵安豆老师微信:zhaoandou666

经管之家联合CDA

送您一个全额奖学金名额~ !

感谢您参与论坛问题回答

经管之家送您两个论坛币!

+2 论坛币
如题,SAS中有函数能求一个数的立方根吗?
SAS中画函数图像有什么好方法?
比如X**2+(Y-3次根号下(x**2))**2=1..
二维码

扫码加我 拉你入群

请注明:姓名-公司-职位

以便审核进群资格,未注明则拒绝

关键词:立方根 如何 立方根

It's not going to be easy, but it is going to be worth it.

沙发
yongyitian 发表于 2013-11-2 22:06:44
data _null_;
    a = 2;
    b = 5;
    d = a**b;
    d1 = d**(1/b);
    put a= b= d= d1= ;
run;
已有 2 人评分学术水平 热心指数 信用等级 收起 理由
小明12345 + 1 + 1 + 1 精彩帖子
henryyhl + 1 + 1 + 1 观点有启发,学习了。

总评分: 学术水平 + 2  热心指数 + 2  信用等级 + 2   查看全部评分

藤椅
henryyhl 发表于 2013-11-3 11:10:59
yongyitian 发表于 2013-11-2 22:06
data _null_;
    a = 2;
    b = 5;
thanks for your suggestion.
It's not going to be easy, but it is going to be worth it.

板凳
bobguy 发表于 2013-11-4 09:42:57
SAS do not provide any function for solving a root. But you can write a simple one with a data step or iml.

Many SAS procedures can be used for solving a root. The following link is an example,

https://bbs.pinggu.org/thread-1440315-1-1.html
已有 1 人评分学术水平 热心指数 信用等级 收起 理由
henryyhl + 1 + 1 + 1 观点有启发

总评分: 学术水平 + 1  热心指数 + 1  信用等级 + 1   查看全部评分

报纸
henryyhl 发表于 2013-11-4 16:56:09
bobguy 发表于 2013-11-4 09:42
SAS do not provide any function for solving a root. But you can write a simple one with a data step  ...
The optmodel in too advanced to be understood right away. I must study it for a while.
Thanks a million.  
貌似用乘方的几分之一更方便些。如x**(2/3).但是这样写好像不行,还得写成(x**2)**(1/3).
It's not going to be easy, but it is going to be worth it.

地板
henryyhl 发表于 2013-11-4 17:25:30
当时是想做函数的图像,但是只能用那种近似的模拟做的,请大家指教。
即函数x**2 +(y-(x**2)**(1/3))**2=1的图像(是个心形)。
data one;
do x = -1 to 1 by .0001;
c=2/3;
y1=(x**2)**(1/3)+sqrt(1-x**2);
y2=(x**2)**(1/3)-sqrt(1-x**2);
output;
end;
run;
goptions reset=all;
symbol1 v=point interpol=m3n90  
        color=red ci=red line=30 repeat=3;
/*symbol2 v=point color=red ci=red line=2;*/
/*symbol v=dot;*/
proc gplot data=one uniform;
plot (y1 y2)*x/overlay  haxis=axis1  vaxis=axis2 ;
axis1 offset=(0,0) order=(-1 to 1 by .1 );
axis2 offset=(0,1) order=(-1 to 1.6 by .2 );

legend label=none;
run;
quit;
It's not going to be easy, but it is going to be worth it.

您需要登录后才可以回帖 登录 | 我要注册

本版微信群
加好友,备注cda
拉您进交流群
GMT+8, 2026-2-3 19:11