Skip to main content

Questions tagged [function-construction]

For questions on writing functions (pure or using Set/SetDelayed) for any purpose, including the features that may be incorporated in those functions, such as options, patterns and conditions.

1 vote
1 answer
81 views

How can I check whether two edges (tagged "c" and "d") have consistent orientation (either always the same ...
internet's user avatar
  • 1,417
3 votes
2 answers
244 views

I have a list of functions like this: ...
internet's user avatar
  • 1,417
4 votes
1 answer
127 views

Is there any efficient way to find cycle matroid of a graph? A cycle matroid is basically all sets of edges in a graph that does not form a cycle. The code below works pretty well for small graphs, ...
internet's user avatar
  • 1,417
12 votes
4 answers
547 views

We can define anonymous functions like this: #^2+#+1 & or like this x |-> x^2+x+1 When we want to define a recursive ...
jjagmath's user avatar
  • 533
2 votes
5 answers
276 views

Let's say that I have a function f which is passed a user-defined function g which is originally passed as an option to some ...
SubSevn's user avatar
  • 131
0 votes
2 answers
109 views

This function has two separate branches (not connected together): func = ConditionalExpression[1/(1 - 2 x)^2, 0 < x < 1]; Given a range of ...
internet's user avatar
  • 1,417
3 votes
1 answer
80 views

Given a list of directed edge-tagged graphs gList like this: ...
internet's user avatar
  • 1,417
5 votes
4 answers
340 views

Given a list, I want to find all possible ways to split it into sublists such that: Each sublist has length greater than 1. Any two consecutive sublists share exactly one common element. All elements ...
internet's user avatar
  • 1,417
0 votes
0 answers
68 views

Before describing the problem, a short background on how it pops up. I am solving a PDE problem on the [0,1]x[0,1] domain. To this end, I want to find the decomposition of some derivatives of the ...
Paweł Korzeb's user avatar
4 votes
2 answers
183 views

Assume that I have a list of simple cycle EdgeTaggedGraph objects called fundamentalCycles. I would like to construct a graph <...
internet's user avatar
  • 1,417
7 votes
5 answers
587 views

This is my code: ...
G Taylor's user avatar
  • 105
4 votes
3 answers
178 views

I have a list of binary functions such as {Plus, Times, Subtract} and a list of symbols like {a, b, c, d}. I want to construct ...
expression's user avatar
  • 5,782
10 votes
11 answers
507 views

Suppose I have a list of binary functions, e.g. funcs = {Plus, Times, Power} as well as a list of arguments, e.g. ...
thecommexokid's user avatar
4 votes
2 answers
162 views

Problem statement: I am trying to write a function that calculates the number of distinct ways an integer can be expressed as a sum of nonnegative integer powers of its decimal digits and return this ...
Vosoni's user avatar
  • 347
2 votes
0 answers
92 views

I don't use Mathematica as much and only use it for some specific tasks from time to time (mostly simplifying expressions and calculating integrals and derivatives). Lets say I have an large ...
Gabriel de Castro Biage's user avatar

15 30 50 per page
1
2 3 4 5
170