trigonometry


Replacing trigonometric functions in Sympy


I am trying to use Sympy to simplify some trigonometry. I realize that Sympy has a mature set of tools for dealing with this, so it seems like I must be missing something. However, I have spent a lot of time searching and can't seem to find exactly what I am looking for.
Question: How do you expand a simple trig function into its complex components?
MWE:
x = Symbol('x',real=True)
# The following works. Note that it expands cmplx functions into trig fncs
exp(I*x).expand(complex=True)
# Now try to go the other way
expand(sin(x)) #nope
expand_trig(sin(x)) #nope
expand(sin(x),complex=True) #nope
expand_complex(sin(x)) #nope
I also tried replace, rewrite, and xreplace, but didn't get anywhere.

Related Links

Distance formula between two Lat/Longs Autoit?
Trigonometric Functions in Pseudo Code
Inverse-Kinematics: How to calculate angles for servos of a robotic arm to reach all possible points in a canvas?
How to calculate Heading using Gyro and magnetometer
Integral of a sign function proof
Best way working with trigonometric functions
Calculate place of point C to be equal distance away from points A and B
How to compute sum of angles from sine and cossine?
Counting trig ops as measure() function to fu() in sympy
Find a coordinate along a path
Angle calculation resulting in strange behavior
Shift angle orientation using atan2
estimate angle between two lines y = 1000x and y = 999x
Need help revising a simple formula to make it universal
SWIFT trig functions
Simplifying atan(tan(a+b))

Categories

HOME
grok
access
google-cloud-functions
parameters
trac
mod-security
project-intu
mxgraph
cmdb
angular-dart
linear-algebra
esoteric-languages
android-7.0-nougat
topology
selinux
babel
pagespeed
ios10.2
fat
syntax-highlighting
licensing
entity-relationship-model
bringtofront
errbot
mobx
database-comparison
swagger-php
xcode7.3
apns-php
diacritics
apache-stanbol
comparison-operators
tcc
apache-spark-dataset
procfile
robomongo
spring-integration-sftp
magic-draw
rxtx
grails-plugin
spring-cloud-feign
beamer
vorpal.js
bizagi
gcloud-ruby
cortex-m
qbxml
design-principles
dynatree
sciruby
rewrite
oracle-spatial
lazybones
branch-and-bound
ms-access-2000
spy++
lambda-architecture
grails-domain-class
gnumeric
gae-quotas
openargs
ora-06550
scrypt
c++builder-xe5
isqlquery
mvc-editor-templates
chart-director
fb.ui
onmousemove
inkcanvas
kqueue
isa-swizzling
infobright
convention
exponentiation
quotation-marks
tmx
timertask
globals
zen
pagemethods
spread
echo3
interop-domino
todos

Resources

Mobile Apps Dev
Database Users
javascript
java
csharp
php
android
MS Developer
developer works
python
ios
c
html
jquery
RDBMS discuss
Cloud Virtualization
Database Dev&Adm
javascript
java
csharp
php
python
android
jquery
ruby
ios
html
Mobile App
Mobile App
Mobile App